Re: [PHP] image button problem

2003-08-14 Thread Jackson Miller
On Tuesday 12 August 2003 8:45, Abdul-wahid Paterson wrote: [snip] > Is there are a better way of doing this? All I want is to know which > button has been clicked on the form. (The form has to be method=POST) Then on the form processing script: if ($test1_x > -1 && $test1_y > -1) { // the t

Re: [PHP] image button problem

2003-08-14 Thread Abdul-wahid Paterson
Hi, > 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. Yes, I should

Re: [PHP] image button problem

2003-08-14 Thread CPT John W. Holmes
From: "Abdul-wahid Paterson" <[EMAIL PROTECTED]> >> 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

Re: [PHP] image button problem

2003-08-14 Thread CPT John W. Holmes
From: "Abdul-wahid Paterson" <[EMAIL PROTECTED]> > 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 but from > IE on the PHP side I only get $_POST['test_x'] and $_POST['test_y'] > defined