Reply to Re: using this IF to forward to page?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация