Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back from 1 to 10+ pages to re-sync the thread and this will then show the latest posts. Thanks, Mike.
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

PHP Referer Help

  • 31-03-2007 1:04am
    #1
    Closed Accounts Posts: 44


    Hi all

    Having a bit of trouble with a referer check - hopefully some can help me out

    Have the following code on a register page, i only want it to appear if the user comes from reg.php. If on reg.php i post a direct link to this page (as in <a href="register.php">sd</a> Then the code works fine and the user sees the message,

    if ( eregi ( "www.daryllsheridan.com/student/reg.php", $_SERVER ) )
    {
    certain code
    }

    Thing is i have reg.php setup to use users via a header back to register.php and when its setup this way the code dosent work

    the way the form works is that
    register.php is a form and when submitted it gets processed on reg.php, if there is an error the user gets brought back to register.php and the above code would kick in and give them an error

    Any ideas on how to get this working? Or a better way of achieving the same result?


Comments

  • Registered Users, Registered Users 2 Posts: 2,835 ✭✭✭StickyMcGinty


    if ($_SERVER == "http://www.daryllsheridan.com/student/reg.php")
    {
    do this
    }

    mess about with echoing different PHP super variables, seemed to iron out a lot of problems for me


  • Registered Users, Registered Users 2 Posts: 4,772 ✭✭✭cython


    You could try using the command getenv("HTTP_REFERER"). I had to do this on something just recently and it seems to work well


Advertisement