note 78793 deleted from function.header by betz

From: Date: Fri, 21 Mar 2008 18:31:00 +0000
Subject: note 78793 deleted from function.header by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-137308@lists.php.net to get a copy of this message
Note Submitter: s_donk_donk at yahoo dot com ---- the things from moehbass at gmail dot com is very useful.. thx! but 1 thing i noticed, as written: if(isset($_POST['ok'])) { if(isset($_POST['yesNo'])) header('Location: http://www.google.com/'); else header('Location: http://www.yahoo.com/'); } You can see it live at: http://labella-pizza.com/header.php it works fine, only if u put the php on the top. when u open the link above, u can copy paste the code included in the textarea to try it.. BUT when u run it, it didnt work. as u can see, the php code is below the html code. u have 1 simple thing to do : cut the php code and paste it at the top.. before the html code.. and run it... then u'll find it works fine! ^^

« previous php.notes (#137308) next »