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
"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
"1lt John W. Holmes" <[EMAIL PROTECTED]> wrote in message
>
> If that's what you want, then just make each button a normal link
> and pass an variable to the next page in the link (like someone has
already
> suggested). You'd get the same end result.
>
>
>
>
>
>
> print "The user selected but
>
>
>
> 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 same HTML
page with the same name and use the 'value' attribute to see
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 'ima
ms like a simple concept 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
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:
$parent will equal "foo"
This doesn't work:
$parent will equal " NOT "foo"
How do I get the value of "foo" to be returned in $parent and still
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:
$parent will equal "foo"
This doesn't work:
$parent will equal " NOT "foo"
How do I get the value of "foo" to be returned in $parent and still
8 matches
Mail list logo