Posted by Rik Wasmus on 11/21/07 00:21
On Tue, 20 Nov 2007 22:32:45 +0100, <paul814@excite.com> wrote:
> OK well the page write-editorial.php opens now but it opens if radio
> selected =3D 0 or 1. it should only do it if =3D=3D 0. Am I missing
> something?
>
> <?PHP
> if($selected_radio =3D=3D 0){
> header('Location: =
> http://localhost/production/write-editorial.php');
> exit;
> }
> ?>
>
> do I first have to tell it what radio button is called, ex:
> radReadWrite ?
Well, how do you get this magic '$selected_radio' variable? (Hint: =
register_globals is probably off, so $selected_radio is not set. Loose =
comparison of 0 against NULL equals true)
-- =
Rik Wasmus
[Back to original message]
|