How to Create a simple Feedback Form
Creating a Form is a great way to become interactive with your site viewers.
Below is an example of a basic Feedback Form for if you are wanting to collect information, or input from viewers of your site and have it sent to you via Email.
eg: a survey, a questionnaire, comments about your site, notification of dead links etc.
This is going to be a Feedback form that is going to tell let the user fill out their name, Occupation, Country, number of times they have visited the site, what they liked about it and their own comments and suggestions.
It is going to consist of an example of 2 TEXT fields, 3 CHECKBOXES, 3 RADIO BUTTONS, SELECT and a TEXTAREA comment box.
We are going to begin a Form, so we start with the
<FORM> tag.
Next we will choose our Method
<FORM METHOD="POST">.
Next we will choose our Action
<FORM METHOD="POST" ACTION="mailto:me@geocities.com">.
Ok, so now we have told the Form what to do with the data, lets add some input fields.
Let's put in some text boxes.
Please enter your name:(this text will show as a heading for the box).
Next we will add the Input type
<INPUT TYPE="TEXT">.
Next we will give it a name (so you can understand the result when it is returned in your email)
<NAME="person">.
Next we will say how many characters are allowed to be typed into the box
<SIZE="30">.
The rest of the text boxes will be the same but just change the 'NAME' as shown in the example.
Now we will add some Radio Buttons.
How many times do you visit this site?:(this text will be the heading for your box).
first time <INPUT TYPE="RADIO" NAME="times" VALUE="first">
once a week <INPUT TYPE="RADIO" NAME="times" VALUE="once">
twice or more a week <INPUT TYPE="RADIO" NAME="times" VALUE="twice">
Now we will add some Checkboxes.
Do you like the:(this will be the heading for your box).
Java <INPUT TYPE="CHECKBOX" NAME="page" VALUE="java">
Frames <INPUT TYPE="CHECKBOX" NAME="page" VALUE="frames">
Layout <INPUT TYPE="CHECKBOX" NAME="page" VALUE="layout">.
Now we will add a Select box.
Please select your occupation:(this will be the heading for your box).
<SELECT NAME="job" SIZE="3">
<OPTION>Homemaker
<OPTION>Student
<OPTION>Law
<OPTION>Medicine
<OPTION>Computers
<OPTION>Other
</SELECT>
Now we will enter a Textbox for the viewers comments.
Please place any comments or suggestions below:
<TEXTAREA NAME="comments" ROWS="10" COLS="50">
Type your comments here.
</TEXTAREA>
Now that we have all the information for the Form that we want, we can add the Submit and Reset buttons.
Submit and Reset
<INPUT TYPE="SUBMIT"
VALUE="Send Feedback Form">
<INPUT TYPE="RESET"
VALUE="Reset Feedback Form">
That is all the information we are going to have in the Form, so now let's close the Form.
</FORM> |
- This is How it will Look - |
|
back to top
That is just one example of how you can put a form on your Web Page.
Forms are relatively easy to include on your Web Page once you understand the basic concept and interpret the tags used.
If you would like to read more about creating Forms, check out:
back to top