Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    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

  2. #2
    Senior Coder Rowsdower!'s Avatar
    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: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts