HEADER Location: ? Problem
Posted: Wed Feb 23, 2011 12:02 pm
Hi.
Re php code: header ("Location: reports/ppid.php?txnid=$txnid&delete=1"); which sits at the completion of a script.
This works fine if I want to go to 'reports/ppid.php'. Unfortunately, the script can be called by any number of different pages.
How do I go back 1 page (or maybe 2 come to that)?
It's easy with a manual link and javascript - but I can't find a way to incorporate js with the Get data '?txnid=$txnid&delete=1'.
I have tried all ways with $_SERVER['HTTP_REFERER'] - but with no luck.
Any suggestions would be much appreciated.
Hope I have explained well enough.
Thanks
TdmRider
Re php code: header ("Location: reports/ppid.php?txnid=$txnid&delete=1"); which sits at the completion of a script.
This works fine if I want to go to 'reports/ppid.php'. Unfortunately, the script can be called by any number of different pages.
How do I go back 1 page (or maybe 2 come to that)?
It's easy with a manual link and javascript - but I can't find a way to incorporate js with the Get data '?txnid=$txnid&delete=1'.
I have tried all ways with $_SERVER['HTTP_REFERER'] - but with no luck.
Any suggestions would be much appreciated.
Hope I have explained well enough.
Thanks
TdmRider