Jump to content

Redirect


jaykappy

Recommended Posts

Trying to redirect based off of the original parameters sent to the php page.

 

I can return the values of the 'Dept' and 'Yr' just fine...but think I have the syntax incorrect below.  Thoughts?

 

echo $_GET["Dept"];
echo $_GET["Yr"];
//Redirect from PHP page:
header("Location: MainPageindexAsbuiltsDisplayYr.php?Dept={$_GET['Dept']}") & Yr={$_GET['Yr']}");

 

This is the call I am originally making to get to the page, after an update of a record I am trying to redirect back to that location

http://156.100.2.30:83/MainPageindexAsbuiltsDisplayYr.php?Dept=Engineering&Yr=1974
Link to comment
https://forums.phpfreaks.com/topic/279069-redirect/
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.