Jump to content

[SOLVED] Post 2 variables in a header


mark110384

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.