Re: how do I pass a variable with header?

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

 



Ross wrote:
header('Location: edit_property.php?property_id=.'$property_id'.');

You read the manual to learn basic PHP syntax.

header('Location: edit_property.php?property_id='.
                  urlencode($property_id));

Also, technically the URL given in a location header should be absolute not relative.

-Stut

--
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