Jump to content

Redirect


Go to solution Solved by Dathremar,

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
Edited by jaykappy
Link to comment
https://forums.phpfreaks.com/topic/279069-redirect/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.