Php Form Url Display

SpaceshipSpaceship
Watch

martyn187

Established Member
Impact
0
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
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
You can get the URL of the referring page with :

$_SERVER['HTTP_REFERER']
 
0
•••
thanks
 
0
•••
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.
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back