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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

> -----Message d'origine-----
> De : Tim [mailto:user@xxxxxxxxxxxxx] 
> Envoyé : lundi 16 avril 2007 19:54
> À : 'Ross'; php-general@xxxxxxxxxxxxx
> Objet : RE:  Re: header('Location:') works locally but 
> not remotely
> 
>  
> 
> > -----Message d'origine-----
> > De : Ross [mailto:ross@xxxxxxxxxxxxx] 
> > Envoyé : lundi 16 avril 2007 19:45
> > À : php-general@xxxxxxxxxxxxx
> > Objet :  Re: header('Location:') works locally but not remotely
> > 
> > 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' ); }
> 
> <php.net>
> http://fr.php.net/header:
> 
> Note:  HTTP/1.1 requires an absolute URI as argument to » Location:
> including the scheme, hostname and absolute path, but some 
> clients accept
> relative URIs. You can usually use $_SERVER['HTTP_HOST'],
> $_SERVER['PHP_SELF']  and dirname() to make an absolute URI 
> from a relative
> one yourself
> </php.net>
> 
> Could this be your issue? I always use full URI for 
> "header('location:"

Sorry i meant i always use full host/uri/extra schema

Tim

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux