Re: [PHP] radio buttons checked or not

2004-04-07 Thread Andy B
- 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

Re: [PHP] radio buttons checked or not

2004-04-07 Thread Daniel Clark
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

Re: [PHP] radio buttons checked or not

2004-04-07 Thread Andy B
>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/

Re: [PHP] radio buttons checked or not

2004-04-07 Thread John W. Holmes
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

RE: [PHP] radio buttons checked or not

2004-04-07 Thread Jay Blanchard
[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

[PHP] radio buttons checked or not

2004-04-07 Thread Andy B
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