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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to