Jump to content

header doesn't redirect properly...wrong URL


calmchess

Recommended Posts

Ok this if statement and code works well untill i get to the header redirect instead of the url being........... http://www.privatechatnow.com/yahoo_video_chat/models/login/adlogin.php#p1....................it come through as http://www.privatechatnow.com/yahoo_video_chat/models/login/adlogin.php.......the #p1 is missing! but if i remove the header redirect from the if statements it works without a hitch ...........please help before my hair is gone.

 

$arr0 = array();
   if(isset($_POST['updathomepic'])){
    $charr0=array($_POST['check0'],$_POST['check1'],$_POST['check2']);
   $scharr0=array_search("1",$charr0);
   $_POST['value1st']=$scharr0+1;
   array_splice($charr0,$scharr0,1,"0");
   $sch2arr0=array_search("1",$charr0);
   
   if($sch2arr0!==False){
   $_POST['err']="twice"; 
    
   }else{
   $_POST['err']="once"; 
    echo"<h1> Once</h1>" ;


updatehomepic($_POST['value1st'],"","","",600,800,255,255,255,255,"aa");
    header('Location: http://www.privatechatnow.com/yahoo_video_chat/models/login/adlogin.php#p1');	  


}

}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.