Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Various Questions: Sending URLs, Redirecting, GET and POST

Status
Not open for further replies.

TheFoxy

Programmer
Nov 22, 2002
48
GB
1) How do I either send the URL of one script by the non-URL method (either GET or POST) to a second script, or get the URL of the first script in the second script. (I am sending 1 string of text from the first script to the second otherwise).

2) How do I redirect the browser back to the first script from the second script?

3) GET and POST, which puts the data in the URL as arguments and which sends the data invisible to the user?
 
1. If you use Apache there is no need to send the URL of the calling script. It is usually in $_SERVER['HTTP_REFERER'].
2. Use the header directive:
header("Location:Be aware that nothing can be echoe'd or printed before the header or it will not work.
3. POST sends invisible to the user. GET appends a query string to the URL.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top