Re: if(isset($submit))
| From: | Simon Willison | Date: | Thu, 28 Feb 2002 11:23:20 +0000 |
| Subject: | Re: if(isset($submit)) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86577@lists.php.net to get a copy of this message | ||
jtjohnston wrote:
I can't get this to work: if(isset($submit)) with: <input type=\"image\" name=\"submit\" value=\"submit\" src=\"next.gif\" border=\"0\" align=\"ABSCENTER\"> I'm not coding correctly? If you are testing for $submit a work around is to have a hidden field in your form that looks like this:<input type="hidden" name="submit" value="yes"> That way any tests for $submit will come up as true once the form has been submitted, but you can still use an image for the actual button.