Forum Moderators: coopster
header("Cache-Control:no-cache");
$sample1=$_COOKIE['sample1'];
$sample2=$_COOKIE[sample2];
$from = getenv("HTTP_REFERER");
require(sample.inc.php');
$i = 0;
$result = @mysql_query("SELECT * FROM table WHERE Username = \"$sample1\" and Password = \"$sample2\"");
while( $row = @mysql_fetch_array($result) ) {
++$i;
}
if($i < 1)
{ echo ("You must first become a member."); exit();} I always get the message in ie but not in firefox.
Btw, if you do not want the page to cache, your headers should look something like this:
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
$num=$_POST["num"];
$go_up=0;
$checkednum=0;
$inputs="";
while($go_up<$num){
$go_up++;
$check_field_name="check".$go_up;
if(isset($_POST[$check_field_name])){
$value=$_POST[$check_field_name];
$checkednum++;
//display names:
$ex=explode("_toexplode_",$value);
$businessname=$ex[0];
$names.='<br>* '.$businessname;$inputs.='<input type=hidden name='."$check_field_name".' value="'."$value".'" >';
}
}
if ($checkednum==0 )
{$msg="<h3 align='center'>You must select a vendor to email in order to access this web page.2</h3>";
echo $msg;
exit();}