Re: image button problem
| From: | CPT John W. Holmes | Date: | Tue, 12 Aug 2003 13:59:20 +0000 |
| Subject: | Re: image button problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159278@lists.php.net to get a copy of this message | ||
From: "Abdul-wahid Paterson" <aw@lintrix.net>
> I am trying to create an HTML form that has several image buttons on it
> and the resulting action depends on which button is pressed.
>
> I first tried using <input type="image" name="test"
> src="...."> but from
> IE on the PHP side I only get $_POST['test_x'] and $_POST['test_y']
> defined. I therefore don't know which of the buttons on the form was
> actually pressed.
What do you mean you don't know what button was pressed? You have 'test_x'
and 'test_y' so you know the "test" button was pressed. If you give the
other buttons a different name, you'll have different _x and _y variable
names, so you can still tell which one was pressed.
---John Holmes...