[PHP] how do I pass a variable with header?

2007-04-21 Thread Ross
header('Location: edit_property.php?property_id=.'$property_id'.'); t: 0131 553 3935 | m:07816 996 930 | [EMAIL PROTECTED] | http://www:blue-fly.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how do I pass a variable with header?

2007-04-21 Thread Stut
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

Re: [PHP] how do I pass a variable with header?

2007-04-21 Thread Richard Lynch
On Sat, April 21, 2007 8:54 am, Ross wrote: header('Location: edit_property.php?property_id=.'$property_id'.'); Location: edit_property.php?property_id=$property_id However, you should be using a complete URI in Location: to be within HTTP spec. -- Some people have a gift link here. Know what