|
Posted by Adrienne Boswell on 07/07/07 00:08
Gazing into my crystal ball I observed Tim Streater
<timstreater@waitrose.com> writing in news:timstreater-
C4D85E.00453807072007@individual.net:
> I
> made each cell have its own form, because I couldn't find in any of the
> docs I have whether a form can be submitted by any one of several
> buttons. All the examples I ever saw only had one button, and the docs
> didn't appear to cover the point.
>
>
A form can have umpteen submit buttons. It's a matter of the server side
script to sort it all out. But... again, important to name the submit
buttons, so when the script _does_ get the information, it knows which
one did the submitting (if that's important to your script).
So:
<form method="post" action="myscript.php">
....various form elements...
<input type="submit" name="sub1" value="Submit">
....more interesting elements...
<input type="submit" name="sub2" value="Submit">
</form>
Then you will get either sub1/Submit or sub2/Submit in your form
collection.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Navigation:
[Reply to this message]
|