Re: header('Location:') works locally but not remotely

From: Date: Mon, 16 Apr 2007 17:44:47 +0000
Subject: Re: header('Location:') works locally but not remotely
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-253040@lists.php.net to get a copy of this message
ok I have a page that calls my my functions, basically a 6 step signup. All the steps look like this function step_one() { $_SESSION['property_id'] =$_POST['property_id']; $property_id = $_POST['property_id']; $postcode= $_POST['postcode']; $query = "INSERT INTO properties (property_id, postcode) VALUES ('$property_id', '$postcode')"; $result= mysql_query($query); header( 'Location: ?step=two' ); } This SHOULD redirect to add_new.php?step=two As add_new is the container page. Thanks. R.

« previous php.general (#253040) next »