This is a discussion on Re: [PHP] image button problem within the PHP General forums, part of the PHP Programming Forums category; From: "Abdul-wahid Paterson" <aw@lintrix.net> > I am trying to create an HTML form ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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... |