Re: Submit button
| From: | Karina S | Date: | Sun, 28 Sep 2003 11:20:32 +0000 |
| Subject: | Re: Submit button | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164162@lists.php.net to get a copy of this message | ||
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
{
.....
}
"Eugene Lee" <list-php-1@fsck.net> az alábbiakat írta a következo üzenetben
news:20030928110323.GB15607@localhost.Earthlink.net...
> On Sun, Sep 28, 2003 at 12:49:27PM +0200, Karina S wrote:
> :
> : I want to use an image as submit button on my form. Now I use the
following
> : code with button:
> :
> : if (!(isset($_Post['SubmitForm'])))
> : {
> : .......
> : .....
> : <input type="submit" name="SubmitForm"
> value="Submit">
> : }
> : else
> : {
> : .....
> : }
> :
> : Is it possible to change the Submit button with an image?
>
> Yep. It's a feature of HTML.
>
> <input name="SubmitForm" type="image" src="image.gif"
> alt="SubmitForm">
>
> Note that the x,y coordinates of where you clicked on the image gets
> submitted as "SubmitForm.x" and "SubmitForm.y", so watch out for the
> existence of these variables.