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 7868041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:52:37+00:00 2026-06-03T00:52:37+00:00

I am trying to implement error proofing to a log in script. But, I

  • 0

I am trying to implement error proofing to a log in script. But, I cannot get it to work? I have no idea what is going on, or why it doesn’t work like I expect it to. I have tried everything, please advise.

This is the method I am calling:

public function i_exist($this_username)
{
    //$host_array = null;
    //$host_array = $this->collection->findOne(array("Username" => $this_username));
    //if ($host_array['Username'] = $this_username)
    //{
          return true;
    //}

    //return false;
}

This is how I am calling it:

if (!empty($_POST['Username']))
{           
    $host  = new Host();        
    $event = new Event();

    if ($host->i_exist($_POST['Username']))
    {
        header("Location: http://www.drink-social.com/error.php?login=duplicate");  
    }

It is supposed to check the database and see if that username is already in use. But it never directs to the error page? I have even tried commenting everything out and returning true, and returning 1. Nothing?
Any advice?

  • 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-03T00:52:38+00:00Added an answer on June 3, 2026 at 12:52 am

    When you call header(); you will also need to call exit(); otherwise the script continues running.

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

Sidebar

Related Questions

I'm trying to implement a linked list but get an error when compiling: intSLLst.cpp:38:
I trying to implement fileUpload , But I get an error described below. i
I'm trying to implement this singleton class. But I encountered this error: 'Singleton::~Singleton': cannot
I'm trying to implement this code into my script but I get a syntax
I'm trying to implement a code with DownloadManager but I have an import error:
I am trying to implement Error Reporting and Recovery in JavaCC grammar I have
I'm trying to implement my own GenericIdentity implementation but keep receiving the following error
I have an configuration error with Unity. I am trying to implement http://unitymvc3.codeplex.com/ ,
I am trying to implement an open source string-to-link converter, but i have an
I'm trying to implement adaptive payments but keep getting this weird error. Here's the

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.