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

  • Home
  • SEARCH
  • 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 8044875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:22:10+00:00 2026-06-05T05:22:10+00:00

I am working on a login system for my PHP site. So to keep

  • 0

I am working on a login system for my PHP site. So to keep things basic, there’s a login.php page and a loginProcessor.php page. The processor page verifies the email and password entered, ect… In the case that a user-entered value is invalid, the processor adds an error message in the session and sends it back (via header function) to the login page where the session errors are set to echo.

I originally started developing the site on my servers at HostGator, where everything worked fine (including the header functions). However, after moving the site locally to MAMP, the header functions stopped working. After the login.php page, it simply moves to the processor page and displays a blank/white page. However, the processor is still doing the verifications and ect… just not redirecting to the appropriate pages.

Here is the first instance where I call the header function in the processor.

        $email = $_POST['email'];
    $email = trim($email);
    if ($email == '' || $email == 'Your Email') {
        $_SESSION['login-error'] = '<div id="error">We didn\'t recognize the email address you entered.<br>Please try again.</div>';
        ob_start();
        header('/login/');
        ob_end_flush();
        return;
    }

Any ideas?

Thank you!

  • 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-06-05T05:22:12+00:00Added an answer on June 5, 2026 at 5:22 am

    You are missing the actual Location directive within the header function:

    header('Location: /login/');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a php/mysql login system for a webproject. After looking through
I am currently working on a login system for a site using the Zend
I have this php login system, I had it working great on localhost, I
I'm working on a php project.. And I started building the admin login system
I am currently working on a site and i'm making a login system. I
I'm using PHP 4.3.9, Apache/2.0.52 I'm trying to get a login system working that
I'm actually working on a PHP project that will feature a user system (Login,Register,Send
I'm working on a PHP login/register system, and the login sessions are done using...
I am working on a login system for a client and I have run
While writing a login system for a web project Im working on I came

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.