NameSilo

Php Form Url Display

Spaceship
Watch
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.
You can get the URL of the referring page with :

$_SERVER['HTTP_REFERER']
 
0
•••
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
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back