A form has a method attribute, which is usually either ‘get’ or
‘post’. Yours uses the ‘post’ method, and that’s just fine. Either
one will do. But a form needs to contain all of the elements that it
is meant to submit at once:
<form method="post" action="your_form_handler.php">
<input type="text" name="name" />
<input type="text" name="rank" />
<input type="text" name="serial_number" />
<input type="submit" value="Tell Me!" />
</form>
That’s a complete form. What you have is more like this:
<form method="post" action="your_form_handler.php">
<input type="text" name="name" />
</form>
<form method="post" action="your_form_handler.php">
<input type="text" name="rank" />
</form>
<form method="post" action="your_form_handler.php">
<input type="text" name="serial_number" />
</form>
<form method="post" action="your_form_handler.php">
<input type="submit" value="Tell Me!" />
</form>
Each element is on its own little (form) island, and as a result, you
only get the submit button, which has no value. If you were to put
your cursor in the rank field above, type something in, and press the
Return key on your keyboard, that mini-form would submit, and all you
would get is the rank. In contrast, if you were to submit the top
form, with all four fields inside one form tag, you would get the
value of the three text inputs all in one whack.
Walter
On Sep 30, 2008, at 2:38 PM, steve wrote:
hi walter
thanks. Oh yes, i see there was two boxes called ‘property2’.
can you explain the ‘post command’.?
Thanks
steve
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options