HTML and CSS Reference
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
Here 's the o pening t ag.
Ever ything in the f orm
…the folde r
<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.
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.