joesaddigh Posted February 24, 2010 Share Posted February 24, 2010 Consider the below code: $message = 'Upload Successful'; //Close the connection to the database mysql_close($conn); header("Location: add_school_photo_form.php? message=$message"); exit(); Can I pass through multiple values here. For example message=$message, schoolid=$schoolid When I have done the above example the result is get is as follows Upload Successful, schoolid=83 So it is working to a certain extent. However I am only printing out the echo $_GET['message']; so it is like they have been merged together. I know I could then use some sort of String function to seperate. Is there an easier way so that I have it as to different variables? For example echo $_GET['message']; would print Upload Successful echo $_GET['schoolid']; would print 83 Thanks, Joe Link to comment https://forums.phpfreaks.com/topic/193260-is-it-possible/ Share on other sites More sharing options...
Andy-H Posted February 24, 2010 Share Posted February 24, 2010 Yes, it is, you need to use an ampersand as a seperator for tyhe get variables. $message = 'Upload Successful'; //Close the connection to the database mysql_close($conn); header("Location: add_school_photo_form.php?message={$message}&schoolid={$schoolid}"); exit(); Link to comment https://forums.phpfreaks.com/topic/193260-is-it-possible/#findComment-1017600 Share on other sites More sharing options...
joesaddigh Posted February 24, 2010 Author Share Posted February 24, 2010 Thanks sooo much was going to try all sorts of rubbish to get round that!! Link to comment https://forums.phpfreaks.com/topic/193260-is-it-possible/#findComment-1017602 Share on other sites More sharing options...
Andy-H Posted February 24, 2010 Share Posted February 24, 2010 Lol no worries m8 Link to comment https://forums.phpfreaks.com/topic/193260-is-it-possible/#findComment-1017615 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.