<?php
session_start();
include "conn.php";
if (isset($_POST['submit']) && $_POST['billno']!='' )
{
$bill = $_POST['billno'];
$query = mysql_query("SELECT bill_no, tag_no FROM tbl_cargo_details WHERE bill_no='$bill' or tag_no ='$bill'")
or die(mysql_error());
while ($row = mysql_fetch_assoc($query))
{
if($bill == $row['bill_no'] || $bill == $row['tag_no'])
{
header("location:true.php?bill=$bill");
}
else
{
header("location:false.php?bill=$bill");
}
}
else
{
?>
i am not able to get the false page location when the condition fails. it only points to the first header location. i think first header is not passing the control when the condition is false. can any one help me out with this. Thanks..
akmozo 5
Biiim
commented:
good +5
Biiim 85
naresh.giri.146
commented:
thank you so so much... u saved me.. +0