NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > CODE
Reload this Page Php Form Url Display

CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here.

Advanced Search
9 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 06-02-2004, 05:23 AM THREAD STARTER               #1 (permalink)
New Member
Join Date: Apr 2004
Location: South East UK
Posts: 10
martyn187 is an unknown quantity at this point
 



Php Form Url Display


Hi all,

Could somebody kindly enlighten me of the code that goes into a php file for a form so it displays the URL from which the form was submitted?

Thanks in advance

Mj
martyn187 is offline  
Old 06-02-2004, 05:54 AM   #2 (permalink)
Senior Member
Join Date: Aug 2002
Posts: 1,255
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
 



You can get the URL of the referring page with :

$_SERVER['HTTP_REFERER']
deadserious is offline  
Old 06-02-2004, 06:29 AM THREAD STARTER               #3 (permalink)
New Member
Join Date: Apr 2004
Location: South East UK
Posts: 10
martyn187 is an unknown quantity at this point
 



thanks
martyn187 is offline  
Old 06-02-2004, 06:37 AM   #4 (permalink)
NamePros Expert
 
Peter's Avatar
Join Date: Nov 2003
Location: Scotland
Posts: 5,074
Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute
 


Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
Just a note tho martyn187 $_SERVER['HTTP_REFERER'] can be forged and also if someone is running a firewall it could be blocked so will show blank (as well as when it goes via a proxy) so best not to rely on this and use it for information purposes only.
__________________
Manage your portfolio using my new Domain Portfolio Management script.
Securing Your Domain Name From Theft
Peter is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 03:47 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger