Share this Page URL

Part: 6 Show Me the Money: Turning Your ... > Frames Questions - Pg. 306

Frequently Asked Questions About HTML Is it possible to use JavaScript totake form data and record it on another page? 306 No, JavaScript can't create a page or add text to an existing page. This can be done only by using CGI or ASP. How can I use an image instead of the usual SUBMIT button? Use the <INPUT TYPE="IMAGE"> control: <INPUT TYPE=IMAGE SRC="someimage.gif"> Replace someimage.gif with the name of the image file that you want to use. Two things to note: · This type of button acts just like a SUBMIT button. That is, when the user clicks the image, the form is submitted to the server. · When the user clicks the image, the browser sends not only the form data, but also the coordi- nates, in pixels, of the spot on the image where the user clicked. These are sent as "x" (the horizontal coordinate) and "y" (the vertical coordinate). How do I get the e-mail address of a person who fills in my form? Include a field in the form and ask the user to enter his or her e-mail address in that field. If you use my MailForm service (see Chapter 12, "Need Feedback? Create a Form!"), name this field "E-mail" or "E-mail." This ensures that when you reply to a MailForm message, your reply gets sent auto- matically to the address that the user filled in. Can MailFormget the user's e-mail address automatically? No, it can't. I'm using your MailForm service,but it doesn't seem to work. Is it still available?