Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP 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
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 24th, 2006, 08:16 PM
Authorized User
Join Date: Dec 2005
Location: , , .
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can you save a url in a session or cookie

First I would like to thank everyone on this forum for their help. Always able to help me solve the problem or learn how to do it.

Here is my question:

I would like to save the url of a page in a session or cookie.

The url to be saved is the current url in the users browser.

I plan to use the onClick(), or if it is possible save the url when the page loads.

Thanks again

Reply With Quote
  #2 (permalink)  
Old June 22nd, 2006, 01:03 AM
Authorized User
Join Date: Jun 2006
Location: bombay, maharashtra, India.
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts

  $_SERVER['PHP_SELF'] is a variable gives you self URL of your page
if you know how to use sessions you can very well store this like this
and using sessions you can access this variable from anywhere
 am i understanding your prob well ???

Reply With Quote

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
Save checkbox settings to cookie clockwork Beginning PHP 1 November 20th, 2007 05:45 AM
PHP session cookie ajit Beginning PHP 0 October 23rd, 2007 11:56 PM
Encrypting session cookie krisXp Classic ASP Databases 1 November 9th, 2006 10:21 AM
Cookie and Session rinventive PHP How-To 0 December 6th, 2005 07:09 PM
session and cookie problem (empty session file) msincan BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 February 27th, 2005 05:31 PM

All times are GMT -4. The time now is 02:24 PM.

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