laide234 Posted September 14, 2006 Share Posted September 14, 2006 I have a variable $job_id that contains a numeric value I would like to append to a header. i.e. if $job_id = 5go to listing.php?view=thanks&job_id=5Here is what I tried[code]header('Location: listing.php?view=thanks&job_id='echo $job_id;'');[/code]Apperently, this isnt working. Any suggestions? Link to comment https://forums.phpfreaks.com/topic/20720-solved-how-do-i-put-a-variable-into-a-header/ Share on other sites More sharing options...
Jenk Posted September 14, 2006 Share Posted September 14, 2006 [code]<?phpheader('Location: listing.php?view=thanks&job_id=' . $job_id);?>[/code] Link to comment https://forums.phpfreaks.com/topic/20720-solved-how-do-i-put-a-variable-into-a-header/#findComment-91662 Share on other sites More sharing options...
laide234 Posted September 14, 2006 Author Share Posted September 14, 2006 Thanks Jenk. Link to comment https://forums.phpfreaks.com/topic/20720-solved-how-do-i-put-a-variable-into-a-header/#findComment-91663 Share on other sites More sharing options...
Jenk Posted September 14, 2006 Share Posted September 14, 2006 No probs. Link to comment https://forums.phpfreaks.com/topic/20720-solved-how-do-i-put-a-variable-into-a-header/#findComment-91671 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.