- Original Message -
From: "Daniel Clark" <[EMAIL PROTECTED]>
To: "Andy B" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, April 07, 2004 4:22 PM
Subject: Re: [PHP] radio buttons checked or not
> My understanding is if the va
My understanding is if the variable "exists" then the radio button was
checked.
> i have this code:
>
> accesskey="y">Yes
>
> accesskey="n">No
> was just wondering if that was the right way to determine the state of a
> radio button...?
> if the value of $old['Type']="Annual" then the yes but
>Assuming $old['Type'] somehow comes from >$_REQUEST['eventtype'] (or is
>related to it), then yeah, that'll work.
no its coming from a db result from fetch_array() of which im having an
interesting problem with right now but thats in another post
--
PHP General Mailing List (http://www.php.net/
From: "Andy B" <[EMAIL PROTECTED]>
> i have this code:
>
> Yes
>
> accesskey="n">No
> was just wondering if that was the right way to determine the state of a
> radio button...?
> if the value of $old['Type']="Annual" then the yes button is checked...if
> not then the no button is checked inste
[snip]
i have this code:
Yes
No
was just wondering if that was the right way to determine the state of a
radio button...?
if the value of $old['Type']="Annual" then the yes button is
checked...if
not then the no button is checked instead...
[/snip]
Check for the value assigned to each
if("Annua
hi...
i have this code:
Yes
No
was just wondering if that was the right way to determine the state of a
radio button...?
if the value of $old['Type']="Annual" then the yes button is checked...if
not then the no button is checked instead...
--
PHP General Mailing List (http://www.php.net/)
To u
6 matches
Mail list logo