Durwood Gafford [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
To make the issues more clear (assuming everyone's not totally burned out
thinking about this one), I will submit links to working, example code in
a
followup post. I'm swamped with a proposal i'm
sure this would work but it'd be VERY inefficient in my application. It's a
file browser application so i have hundreds of folder icons on a page .. the
'submit' element will pass back the name of the button clicked and it would
be available immediately/directly, which is what i want. BUT an
At 12:18 30.01.2003, Durwood Gafford spoke out and said:
[snip]
sure this would work but it'd be VERY inefficient in my application. It's a
file browser application so i have hundreds of folder icons on a page .. the
'submit' element will pass back the name
To add to my message, you could:
$buttons = array('sample_a_x', 'sample_b', 'sample_c_x');
$button_pressed = array_intersect($buttons, array_keys($_REQUEST));
If you have everything perfect, i.e. all available buttons are held in the
array, and there are no other input fields in your form that
input type=submit name=sample_a
input type=image name=sample_b src=myimg.gif
With the first method, you'd need to test for a button named 'sample_a'.
For the second method, you'd need to test for a button named 'sample_b_x'.
no ... with the first example you can have numerous buttons on the
At 13:37 30.01.2003, Durwood Gafford spoke out and said:
[snip]
input type=submit name=sample value=a
input type=submit name=sample value=b
input type=submit name=sample value=c
input type=submit name=sample value=d
your php form handler can now simply
At 13:37 30.01.2003, Durwood Gafford spoke out and said:
[snip]
input type=submit name=sample value=a
input type=submit name=sample value=b
input type=submit name=sample value=c
input type=submit name=sample value=d
your php form handler can now
1lt John W. Holmes [EMAIL PROTECTED] wrote in message
If that's what you want, then just make each button a normal a href link
and pass an variable to the next page in the link (like someone has
already
suggested). You'd get the same end result.
a href=page.php?sample=aimg/a
a
On 27-Jan-2003 Durwood Gafford wrote:
I can't figure out how to tell which button was pressed by a user when i'm
using a button instead of a standard submit form element.
This works:
input type=submit name=parent value=foo
$parent will equal foo
This doesn't work:
button
This suggested solution is not quite what i was looking for (I was aware of
it already):
A: input TYPE=IMAGE NAME=parent VALUE=foo SRC=icon.gif
The above uses an image as a bitmap and gets the x,y values where it was
clicked. I'd like to use an ICON (instead of a standard submit button) and
10 matches
Mail list logo