Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 414085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:14:53+00:00 2026-05-12T18:14:53+00:00

instead of login.php?ref=http://mysite.com/lastpage could I get the before page somehow else? tried HTTP_REFERER but

  • 0

instead of

login.php?ref=http://mysite.com/lastpage

could I get the before page somehow else? tried HTTP_REFERER but cant get it to work

Notice: Undefined index: HTTP_REFERER in C:\test\login.php on line 18

// Newbie

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T18:14:53+00:00Added an answer on May 12, 2026 at 6:14 pm

    The HTTP_REFERER is not always set, that’s why you’re getting the notice. The browser may opt not to send it or the user may have entered the URL directly into his browser. You can put that value into the session, which has other drawbacks (multiple tabs in the browser have the same referrer page, for example.) I think the url is still the best way to go, if you don’t have a form, which you can append a hidden field to.

    EDIT By the way: don’t use the URL in the get parameter blindly, that can be faked again by others as explained in the answers to this other question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem with my .htaccess redirections. Say I want to change http://www.domain.com/login.php into
When I goto http://example.com/not-here I get an internal server error instead of an 404,
After I logging in to my wordpress (via wp-login.php) home page is loading instead
I have written php script for user login but instead of displaying the result
I'm trying to log onto the following website using HttpWebRequest: http://mostanmeldung.moessinger.at/login.php Texts are in
j_security_check just doesn't seem enough for me to perform login process. So, instead of
Instead of www.example.com/author/xyz, I want to use www.example.com/artist/xyz. I was hoping it was as
I have a login form using jquery ajax and a php code. The issue
I mod_rewrite my pages very similar to how SO does it. I have www.example.com/users/login/
I have the following code: <?php if (!$user) { ?> <div class=fb-login-button data-perms=email,user_birthday,publish_stream>Login with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.