Dave wrote:
: Can any one tell where I went wrong here?
: (I remember reading that a html form can have
: multiple submit forms as long as you parse them
: via their value)
: ...
: In the html:
: <input type="submit" value="add"><input type="submit" value="sub">
These tags need a name attribute. Without it, the values will not
be bound to a CGI parameter name. e.g.,
<input name="submit_action" value="add><input name="submit_action" value="sub">
Then in the script:
if ( $FORM_DATA{submit_action} eq 'add' ) {
...
}
-- tdk