If you save "reply.html" in a sub folder/directory in your site, then this sub folder's name has to be included in the value direction.
The code above creates the boxes alone without the blue, "Your name" / "Your e-mail" captions. Let's take the code apart and see what each command actually means.
Input type tells the computer that a form item is going to be placed here. In this case, the form item is - wait for it baby - TEXT! Seems kind of obvious really. Of course the person responding to the form is going to 'input text' Da!
Name is a "ONE WORD" heading you give each individual text box in your form. It will be included in the message that is returned to you as a title so you can keep clear what directions people are responding to. When visitors send the form to you and you get the mail, you don't see the same clear form with titles and captions that was on your page. You only receive their answers. That's pure text baby. Yeah! (Sorry, too much Austin Powers.)
Mail that comes to me from the above 2 text boxes will say: This way I don't get confused. I know that the answers were typed in the text boxes I called, "name" and "e-mail". Call each text box whatever it is you want your visitor to tell you. If you want someone's address, put name="address" in your input tag. If you're using the text box to get someone's age, call it "age". etc., etc.
This means that my text box will be 30 characters long. You can change this number and make the box however long you like.
The 'textarea' tag makes a box in which the visitor to your page can type copious amounts of text. This sets how many columns wide you want the form's textarea box to be. My form's textarea box is 45 colums wide. This sets how many rows high you want the form's textarea box to be. My form's textarea box is 6 rows high. Comments or feedback about a Website is one common use for textarea boxes in forms.
This creates the button people click when they want to send their message to you. The value attribute sets the message you want your 'send' button to display." If you don't include value="?", a 'send' button will still be created but it will depend on the browser you are using as to what it looks like and what title it has. I gave mine the title, "send your thoughts".
Make a boo boo, or don't like what you've written? The reset will clear your message so you can start over. The value attribute sets the message you want your 'reset' button to display." If you don't include value="?", a 'reset' button will still be created but it will depend on the browser you are using as to what it looks like and what title it has. I gave mine the title, "clear your thoughts".
To the top
Go to lesson 11. CLICK HERE : TO READ KIMBERLY'S DIARY ENTRY FOR THIS LESSON! Click to peruse our SpinNet Homepage. Page created by Kimberly Rigby. / For any comments or questions, click here! |