★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum5/HTML/001963.htmlNouvelle recherche | Portail wanayoo
DevShed Menu
* DevShed Home
* Developer News
* DevShed Brain Dump




UBBFriend: Email This Page to Someone!
  DevShed Discussion Forums
  PHP
  URL Grabbing

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   URL Grabbing
Mark Wolfgramme
Junior Member
posted July 17, 2000 07:14 AM     Click Here to See the Profile for Mark Wolfgramme   Click Here to Email Mark Wolfgramme     Edit/Delete Message Reply w/Quote
I'm trying to figure out how to capture the entire contents of the current page's URL Address/Location.

I want to capture this so as to create a link in a 'downstream' page which allows me/visitor to get back without using the 'Back' button or Javascript History(?).

Any suggestions?

Thanks
Mark

ledjon
Member
posted July 17, 2000 08:21 AM     Click Here to See the Profile for ledjon   Click Here to Email ledjon     Edit/Delete Message Reply w/Quote
I think this would list the refering url (I know it modified version of it works in perl, this is just a quess):

$backto = $HTTP_REFERER; #Assuming that you're running an apache web server.

<a href=/old?u=http%3A%2F%2Fwww.devshed.com%2FTalk%2FForums%2FForum5%2FHTML%2F%5C&y=1999"$backto\">Back</a>.

NOTE: In perl it would be:
$backto=$ENV{'HTTP_REFERER'};
But I think in PHP it's not in a hash (assositive array), but rather just a variable.

Mark Wolfgramme
Junior Member
posted July 17, 2000 09:55 AM     Click Here to See the Profile for Mark Wolfgramme   Click Here to Email Mark Wolfgramme     Edit/Delete Message Reply w/Quote
Perfect!

Thanks
Mark

All times are MST (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | DevShed.com

Copyright © 1997-2000 ngenuity. All rights reserved.

Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.