mark110384 Posted October 17, 2008 Share Posted October 17, 2008 Hey guys I'm looking to send 2 variables through a url to load a page. Essentially it sends the variables $topic_id (this is to load the appropriate topic) and $errornum (if an error has been encounted whilst adding the reply a number will be put beside) how would I pass the 2 variables through the url. This is what I have at the moment but it doesn't seem to work. Any suggestions would be appreciated. Thanks header('location:showtopic.php?topic_selected=$topic_id&error_id=$errornum'); Link to comment https://forums.phpfreaks.com/topic/128823-solved-post-2-variables-in-a-header/ Share on other sites More sharing options...
mark110384 Posted October 17, 2008 Author Share Posted October 17, 2008 Yeah got it working the second after I posted this. With header("Location: showtopic.php?topic_selected=$topic_id&error_id=$errornum"); Link to comment https://forums.phpfreaks.com/topic/128823-solved-post-2-variables-in-a-header/#findComment-667862 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.