Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 12th, 2007, 09:25 AM
Registered User
 
Join Date: Apr 2007
Location: Warwick, Warwickshire, United Kingdom.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Find previous page

Hi, I am trying to implement a system where web pages can link to my home page (without any get values) and my home page will redirect the user based on the page they came from.

In short I need to know if there is a variable or function in php which will tell me what page the user has just come from, and if so, what it is.

Thanks,
Reply With Quote
  #2 (permalink)  
Old June 7th, 2007, 07:04 AM
Registered User
 
Join Date: Jun 2007
Location: , , Slovenia.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to astarsi
Default

Do you mean something like: $_SERVER['HTTP_REFERER'] ?
If so, you can check here:
http://si2.php.net/reserved.variables

bye


Reply With Quote
  #3 (permalink)  
Old June 7th, 2007, 11:55 AM
Registered User
 
Join Date: Apr 2007
Location: Warwick, Warwickshire, United Kingdom.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yeah, that's the one. Thanks
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to expire previous page johnsonlim026 ASP.NET 1.0 and 1.1 Basics 6 May 22nd, 2009 12:05 PM
Page 1-2-3-4 etc.... Next and Previous buttons crmpicco Classic ASP Basics 1 March 18th, 2005 12:00 PM
Checking Previous Page shs BOOK: Beginning ASP.NET 1.0 2 September 23rd, 2004 11:01 PM
next and previous page results mikeuk PHP Databases 1 July 19th, 2004 05:15 AM
go back previous page hosefo81 PHP How-To 2 February 11th, 2004 01:50 PM



All times are GMT -4. The time now is 01:51 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.