Build an XHTML form for submitting information about the item which is being req
ID: 3651277 • Letter: B
Question
Build an XHTML form for submitting information about the item which is being requested. Require that the visitor provide a brief description of the item, the desired size, and an email address for confirmation.
Use the POST method of transmission, since this is the sort of application which often leads to updates to databases.
The script will contain a hardcoded email address for the flea-market organizer.
The script will use string operations - primarily concatenation operations - to build a text message which will be sent to the flea-market organizer. The text message must include plenty of descriptive text, and the information supplied by the visitor should be placed appropriately.
After creating the message, the script will invoke the functions used to send it to the flea-market organizer.
(NOTE: Performing an actual test transmission may not be possible - please discuss this on the boards.)
Work with the text message further - the next step is to send a confirmation email to the visitor, so add text to the message which identifies the message as such. (Add the new text to the FRONT of the message . . .)
Invoke the mail function again (remembering that you may not be able to send an actual message), then use the XHTML portion of your script page to display the contents of the confirmation message.