Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to put the previous page url as a variable

 
   Database Help (Home) -> PHP RSS
Next:  PHP.ini -- Can't find it  
Author Message
Ben

External


Since: Feb 21, 2005
Posts: 1



(Msg. 1) Posted: Mon Feb 21, 2005 4:20 pm
Post subject: How to put the previous page url as a variable
Archived from groups: comp>lang>php (more info?)

Hi,
Is it possible for php to set a variable to have the same value as
the url of the previous page? I want to do this without having to
post the information, use sessions or cookies. Can this be done?

Thanks


Ben

 >> Stay informed about: How to put the previous page url as a variable 
Back to top
Login to vote
Andy Hassall

External


Since: Jan 11, 2004
Posts: 318



(Msg. 2) Posted: Mon Feb 21, 2005 7:40 pm
Post subject: Re: How to put the previous page url as a variable [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 21 Feb 2005 15:20:21 -0800, bs2k1.TakeThisOut@excite.com (Ben) wrote:

 > Is it possible for php to set a variable to have the same value as
 >the url of the previous page? I want to do this without having to
 >post the information, use sessions or cookies. Can this be done?

No, not reliably, if you're excluding adding to the query part of the URL,
posting, sessions or cookies. Look at $_SERVER['HTTP_REFERER'] for an
unreliable method based on trusting the client.

--
Andy Hassall / / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool

 >> Stay informed about: How to put the previous page url as a variable 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
how to access variables from a previous page - I have this bad_order.php page that works. At the end of the page, before the queries, there is an if/else ,if the user pushes an Excel button on the template it goes to the location bad_orderXL.php otherwise it finishes and displays the data. If a..

writing pdf docs and going back to the previous page - hi all im trying to write a pdf document which contains two columns of data. when the column on the left crosses over to the next page i need to be able to go back afterwards to the previous page to write the content for the right column. currently im....

question about using "global" on one page then using the v.. - I am taking over an exisitng app. I have the following function on one page: function check($v) { global $user; return $user->validate($v[1], $v[0]); } And it reference $user on the next page. Register_globals are set on the existing server ...

Can't get $_session variable on some other page - Dear friend , As i authenticate my some other page with editdelete.php ----------------------- session_start(); if ((isset($_SESSION['validUser'])) && ($_SESSION['validUser'] == "Y")) { ?> Show some text...

mssing session variable in other page - I am the newbie in php I have a problem about the session variable When I create the session and session variable, the variable is set in page 1, but in page 2 the variable is unset and I don't know why. I have searched a lot of tutorial, I followed all....
   Database Help (Home) -> PHP All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]