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 type=submit name=parent value=fooimg
src=icon.gif/button
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 type=submit name=parent value=fooimg
src=icon.gif/button
that's
frustratingly difficult.
-Durwood
Don Read [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
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 sub
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
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
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
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 prop
I would like to read and write user-settings to a keyword-value file and be
able to extract it. The following code works fine but i wondered if there
was a more elegant/direct way of doing this.
-Durwood
$file = user_settings.txt;
// Read user settings from file if it exists, otherwise set to
8 matches
Mail list logo