RE: [PHP] 1 Form, 2 Submit-Buttons

2002-07-11 Thread Martin Towell

give each a name and the value of the image clicked should then be in a var.
by that name

-Original Message-
From: Martin Thoma [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 4:09 PM
To: [EMAIL PROTECTED]
Subject: [PHP] 1 Form, 2 Submit-Buttons


Hello! I want to make a form (a wizard) which has 2 Submit-Buttons (Back
 Next). The buttons should be images. How can I make php see, which
button has been pressed?

Martin



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

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




RE: [PHP] 1 Form, 2 Submit-Buttons

2002-07-11 Thread Sachin Keshavan

Hello,

There is a form tag which is like
input type=image name=xyz src=abc.jpg value=xyz

This will have the same effect as clicking on a HTML submit button.

Hope this helps,
Sachin.

-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 11:36 AM
To: 'Martin Thoma'; [EMAIL PROTECTED]
Subject: RE: [PHP] 1 Form, 2 Submit-Buttons


give each a name and the value of the image clicked should then be in a var.
by that name

-Original Message-
From: Martin Thoma [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 4:09 PM
To: [EMAIL PROTECTED]
Subject: [PHP] 1 Form, 2 Submit-Buttons


Hello! I want to make a form (a wizard) which has 2 Submit-Buttons (Back
 Next). The buttons should be images. How can I make php see, which
button has been pressed?

Martin



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

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

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




RE: [PHP] 1 Form, 2 Submit-Buttons

2002-07-11 Thread César Aracena

Look at the switch function
http://www.php.net/manual/en/control-structures.switch.php or make
decisions with using IF statements based on the variable's value sent
(button pressed).

C.

 -Original Message-
 From: Martin Thoma [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 12, 2002 3:09 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] 1 Form, 2 Submit-Buttons
 
 Hello! I want to make a form (a wizard) which has 2 Submit-Buttons
(Back
  Next). The buttons should be images. How can I make php see, which
 button has been pressed?
 
 Martin
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



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