RE: [PHP] Detecting an image form submission via PHP

2001-09-21 Thread Matt Williams

 When a form is submitted using a standard SUBMIT button it is possible
 to catch this via php using  if ($submit) but how do you catch this if
 you are using an image for submitting instead of the button?

 Any help would be greatly appreciated.


values of image_x and image_y will be set if you use a button.
Also be aware that if someone submits the form via keyboard none of these
maybe set.

You could use a hidden field containing the formname and look for that

HTH

M@


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Detecting an image form submission via PHP

2001-09-21 Thread Michael van Bracht

- Original Message -
From: Neil Freeman [EMAIL PROTECTED]
To: PHP General [EMAIL PROTECTED]
Sent: Friday, September 21, 2001 3:30 PM
Subject: [PHP] Detecting an image form submission via PHP

you could use a input type=hidden name=submit value=true in the form



regards

Michael



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Detecting an image form submission via PHP

2001-09-21 Thread Neil Freeman

OK cheers, that method seems to work ok.

Thanks, Neil

Michael van Bracht wrote:

 - Original Message -
 From: Neil Freeman [EMAIL PROTECTED]
 To: PHP General [EMAIL PROTECTED]
 Sent: Friday, September 21, 2001 3:30 PM
 Subject: [PHP] Detecting an image form submission via PHP

 you could use a input type=hidden name=submit value=true in the form

 regards

 Michael

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

 ***
  This message was virus checked with: SAVI 3.49
  last updated 19th September 2001
 ***

--

 Email:  [EMAIL PROTECTED]
 [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]