Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Linking to Back previous page
09-27-2012, 04:19 PM #1
- Join Date
- Feb 2006
- Thanked 0 Times in 0 Posts
Linking to Back previous page
i wanna be able to have the user click the Back link to get to a previous Page what i have is the Following can't figure out how to link back from this
if ($result && mysql_num_rows($result) > 0) die("<p>Customer Abreviation already exists!</p>"); // Link back to previous page
09-27-2012, 04:37 PM #2
- Join Date
- Oct 2008
- Some say it's everything.
- Thanked 397 Times in 390 Posts
You can use $_SERVER['HTTP_REFERER'] for the href value but be aware that it cannot be "trusted." The user can manipulate the value.
I'm not sure if that is of any concern in your case, but if it is just be aware that the referer data in $_SERVER is not reliable.
The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
See Mediocrity in its Infancy
It's usually a good idea to start out with this at the VERY TOP of your CSS:
Seek and you shall find... basically: validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting