I'm not sure I understand. In the first loop you are seing if
$article_active equals y. And no where in the code do you set
$article_active to anything else.

Why would you think $article_active would be anything but "y" or "n"?


--
Plutarck
Should be working on something...
...but forgot what it was.


"Jordan Elver" <[EMAIL PROTECTED]> wrote in message
01041415474000.10298@localhost">news:01041415474000.10298@localhost...
> Hi,
> I think I'm being stupid. Why won't this code work. The $article_active
> variable is showing y when I echo it?
>
>
> if($article_active == 'y') {
> echo"<INPUT TYPE=\"radio\" NAME=\"active\" VALUE=\"y\" SELECTED>Yes";
> } else {
> echo"<INPUT TYPE=\"radio\" NAME=\"active\" VALUE=\"y\">Yes";
> }
>
> if($article_active == 'n') {
> echo"<INPUT TYPE=\"radio\" NAME=\"active\" VALUE=\"n\" SELECTED>No";
> } else {
>         echo"<INPUT TYPE=\"radio\" NAME=\"active\" VALUE=\"n\">No";
> }
>
>
> Thanks,
>
> Jord
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to