Help with creating a php login shortcut?

I am trying to create a desktop shortcut that logs the user into our website. Here's what I have:




When going directly to the login page, the address bar reads:



(breaks inserted to keep Answers from turning it into a partial link address)

If I change php? to ?ref= to match the address bar then I at least get to the login but it doesn't fill in and log in.

I've made sure that 'signin', 'username' and 'password' are the correct wording. The only thing I can think is that the post method is tripping it up? I've tried replacing the @ with %40 and that didn't help. Help??

2 Answers

  • Jeff P
    Lv 7
    8 years ago
    Favorite Answer

    Don't pass the username and password that way. They should only be passed via POST. Create a field in your database called login_token and make it a long, random string (eg: A32ana390A3Kkh395hbGu7S3luK9h55Bng3...). Then, on your signin.php page, have it check for the token:


    if(isset($_REQUEST['token'])) {

    //validate token

    } else {

    //your existing code here



    But to answer your question, your signin.php page is probably looking for those fields to be posted and not through a query string.

  • Anonymous
    4 years ago


Still have questions? Get your answers by asking now.