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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:05:38+00:00 2026-05-28T13:05:38+00:00

I have a user who registered on my website with some email and password.

  • 0

I have a user who registered on my website with some email and password. As soon as he registers we will send a confirmation code to his email and ask him to enter the number to sign up.

Unfortunately there is a possibility that the user may fill the data and may logoff today without entering the confirmation code and he may come back tomorow and login with his registered email. So I would check his email in the database and if he is registered and if his email is under the approval of code sent to his email then I want to redirect him to a page indicating that “a code has been sent to your email respond to your code to sign up” else if he is already registered and there is no pending approvals then redirect him to his profile.

I am not sure the way to do it. I was thinking to use this: if user is under approval then header('location confirmation.php') and if he is approved then header('location profile.php') but I’m not sure if this is the right way to do it. Can headers be used for this purpose? or what is the alternate solution to do it. Please help me with this, thanks.

  • 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-28T13:05:39+00:00Added an answer on May 28, 2026 at 1:05 pm

    Yes, you can do this. Please remember to add an exit; call after all calls to header() when changing locations, otherwise the entire page is processed and sent to the client. This can be a big security problem, depending on the page content.

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

Sidebar

Related Questions

I have a user who registered with an email like word+word@email.com it allowed the
I have problem with c# script who change user AD password, when try change
A question to maybe some who have worked extensively with WinUSB APIs or user
I have a website and my domain is registered through Network Solutions (who I
I have one user who gets an error message when he closes his browser.
I have a Unity3D application who needs registration. The user needs to register in
I have a user who randomly gets a Script Error box (shown below) which
I have asp:DropDownList control which i want to display data to user who don't
My goal for now is to have a user search for other users who
I have a list of the user's images displayed, (who has already allowed access

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.