note 108392 added to function.header

From: Date: Sun, 22 Apr 2012 17:20:05 +0000
Subject: note 108392 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-187286@lists.php.net to get a copy of this message
<?php include('connection.php'); $str=$_POST['txtFname']; $query=mysql_query("select * from user where fName='$str'"); $count=0; if(!($_POST['btnSubmit'] && $_POST['txtFname'])){ echo"Enter Name of the user."; header('Location: index.php'); exit; } else{ echo"<ol>"; while($rows=mysql_fetch_assoc($query)): $fName=$rows['fName']; $lName=$rows['lName']; $age=$rows['age']; echo"<li> ".$fName." ".$lName." is ".$age." years old.<br>"; $count++; endwhile; print"</ol>"; if($count){ echo"we have ".$count." ".$_POST['txtFname']; echo"<br />"; for($i=strlen($str)-1;$i>=0;$i--) echo $str[$i];} else echo " data not match."; header('Location: index.php'); } ?> ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, The above is my action.php page. But i cant redirect to index.php. ---- Server IP: 72.55.140.6 Probable Submitter: 58.97.199.106 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- https://master.php.net/note/edit/108392 Del: integrated -- https://master.php.net/note/delete/108392/integrated Del: useless -- https://master.php.net/note/delete/108392/useless Del: bad code -- https://master.php.net/note/delete/108392/bad+code Del: spam -- https://master.php.net/note/delete/108392/spam Del: non-english -- https://master.php.net/note/delete/108392/non-english Del: in docs -- https://master.php.net/note/delete/108392/in+docs Del: other reasons-- https://master.php.net/note/delete/108392 Reject -- https://master.php.net/note/reject/108392 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#187286) next »