Re: Submit button
| From: | Eugene Lee | Date: | Sun, 28 Sep 2003 11:51:02 +0000 |
| Subject: | Re: Submit button | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164166@lists.php.net to get a copy of this message | ||
On Sun, Sep 28, 2003 at 01:20:32PM +0200, Karina S wrote:
:
: I have changed the code, but it doesn't work.
:
: if (!(isset($_Post['SubmitForm_x'])))
: {
: .......
: .....
: <input name="SubmitForm" type="image" src="image.gif"
alt="SubmitForm">
: }
: else
: {
: .....
: }
1. The superglobal array is $_POST (all caps), not $_Post.
2. Make sure the URL path to your image file is correct, i.e. change
"image.gif" to the relative or absolute URL.
3. The "alt" attribute is technically unneeded.
4. When in doubt:
print_r($_POST);