For some reason, the below is erroring out. Any thought how I can get this to work with variable?
header( "Location: http://www.url.com/file.php?maexid=$_GET['maexid']" );
Passing a variable via the php header redirect
Moderator: General Moderators
- edawson003
- Forum Contributor
- Posts: 133
- Joined: Thu Aug 20, 2009 6:34 am
- Location: Los Angeles, CA - USA
Re: Passing a variable via the php header redirect
Bad syntax. If you want to put a variable like that in a string you need to do it differently.
Re: Passing a variable via the php header redirect
Can probably do it like this:
Code: Select all
$maexid = $_GET['maexid'];
header( "Location: http://www.url.com/file.php?maexid=$maexid" );
- edawson003
- Forum Contributor
- Posts: 133
- Joined: Thu Aug 20, 2009 6:34 am
- Location: Los Angeles, CA - USA