The form itself only requires html
It should start with
HTML Code:
<form name="form" id="form" method="post" action="LOCATION.php">
LOCATION.php being the url of the form handler your using.
In older browsers rather than using the form handler you can just send it to your email. using the mailto tags
e.g.
HTML Code:
Although in modern browsers this may just send a blank email because its no longer supported, by "most" browsers.
As well as this you don’t have as much control over how the data is displayed when send to you, or the ability to make a thank you page etc.
Next you need to put in some inputs.
for something like
Question: ______________
you would use
HTML Code:
<br>
question :<input name="title" type="text" />
<input name="title" type="text" />
is what makes the text box itself. You can have as many as you like. but they must all have individual names so they can be told apart
ie
<input name="sheep" type="text" />
<input name="cow" type="text" />
etc. although its probably best if the name is something similar to the question. although its best to be one word, so interpreter doesn’t have any problems.
Another think you could have inside is a text box
HTML Code:
<textarea name="message" ></textarea>
Again each one must have its own Name.
a text box is basically a bigger input. and multi line.
The only other major think you may want in a form is a multi choose input.
HTML Code:
<select name="rate">
<option>5</option>
<option>4</option>
<option>3</option>
<option>2</option>
<option>1</option>
</select>
The options selectable are 1 to 5. you can ad and removed them in the same way
and again each one needs a new name.
Secondly, if you want an option, to say something but have a different value when submitted.
<option value="cow">1</option>
use that.
You can also use the value="" tag in the other boxes to have some text already written in to them.
To make a text aria invisible. which is mainly useful for php scripts but ill say anyway you simply change the type
from text
to hidden
eg
<input name="info" type="hidden" />
Or to make the letters invisible typed in to splodges (aka a password field)
use this
<input name="info" type="password" />
finally we need a submit button
HTML Code:
<input type="submit" name="Submit" value="button text">
Ad that to the end to make a submit button. Also change button text to the text you want to display on the button.
And to end the form. you just close the form tags.


Search
Categories


Print Article
Bookmark Article
Save as PDF
October 13, 2007, 5:31 pm
Hi nice site i licke him ty.
http://fataldimo.angelfire.com/
http://ragivrigis.blogspot.com/
http://businessperspective.blogspot.com/
http://privacystate.blogspot.com/
http://letgoforbidden.blogspot.com/
http://fataldimo.angelfire.com/
http://ragivrigis.blogspot.com/
http://businessperspective.blogspot.com/
http://privacystate.blogspot.com/
http://letgoforbidden.blogspot.com/