Hi Wade,
You are using "checked" in the correct wasy.
I'm not sure why, but if you remove the underscore in the NAME field, so
it's over18 as opposed to over_18 the code works, at least it does for me.
I've always understood that underscores where fine in an input name, so it's
a bit odd.

all the best,
Fergal

----- Original Message ----- 
From: "Wade" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, April 12, 2005 10:48 PM
Subject: [php-list] Radio button on sticky values


>
> 04122005 1645 GMT-6
>
> Im using this code for radio button sticky values:
>
> if ( $over_18 == Yes ) {
>   print '<td>Yes<INPUT TYPE="radio" NAME="over_18" value="Yes" CHECKED >';
>   print 'No <input type="radio" name="over_18" value="No"></td>';
> }
> else {
>   print '<td>Yes<INPUT TYPE="radio" NAME="over_18" value="Yes">';
>   print 'No <input type="radio" name="over_18" value="No" CHECKED ></td>';
> }
>
> Is there anything wrong with this code? I changed the CHECKED to
> checked="CHECKED" and it stopped working.
>
> But this code doesnt work either.
>
> Wade



Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to