HTML and CSS Reference
In-Depth Information
How the <form> element works
Let's take a closer look at the <form> element—not only does it hold
all the elements that make up the form, but it also tells the browser
where to send your form data when you submit the form (and the
method the browser should use to send it).
The action at tribute
holds the UR L of the
web server…
Here 's the o pening t ag.
Ever ything in the f orm
goes inside.
…the folde r
the script
is in…
<form action="http://wickedlysmart.com/hfhtmlcss/contest.php" method="POST">
Every thing inside your
form goes here…
and the clos ing tag
e nds the for m.
</form>
Hey wickedlysmart.com, my
user just clicked a button to
submit a form. I've got some form
data I'm sending you via POST. It's
addressed to the “contest.php” server
script in the “hfhtmlcss” folder.
Bring it on.
We're ready!
contest.php
hfhtmlcss
Browser
wickedlysmart.com
 
Search WWH ::




Custom Search