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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:06:00+00:00 2026-05-13T22:06:00+00:00

I am in a web scripting class and our teacher is very strict on

  • 0

I am in a web scripting class and our teacher is very strict on the guidelines of the assignment, as he has scripts that grade our work. With that being said we are allowed to use only two forms for our assignment, one for logging in (form 1) and one for submitting data to be entered into a database (form 2).

My instructions say:

  • A user is required to submit their login credentials on form 1
  • If upon entering valid credentials the user is taken from form 1 to form 2

I’ve been saving state information for form 1 via hidden input types that will have form 1 either collect login credentials or check the login credentials. I can do that great and I can also in fact check the login in credentials great too. When the user is valid I can also redirect to form 2 via header(). My problem is I need to save some sort of state information on what type of user was just validated (there can be an admin or regular user), and from what I understand at http://php.net/manual/en/function.header.php that the way I was saving my state information via hidden input types won’t work as header() must be called before any actual output is sent.

Could someone please help point me in the right direction or inform me on how I can accomplish a redirect to form 2 while some how saving information on whether or not an admin or regular user was just validated?

I was thinking of using my database to save the information but that doesn’t seem very effective at all.

Thanks for all the help. 😀

  • 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-13T22:06:00+00:00Added an answer on May 13, 2026 at 10:06 pm

    You should look into using sessions.

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

Sidebar

Related Questions

I'm in a web scripting class, and honestly and unfortunately, it has come second
A 3rd party web application has a cross-scripting security issue. There is one page
I'm trying to build a web server in node.js that will support cross-domain scripting,
I am in a Web Scripting class at school and am working on my
Hi Im using Ruby as a scripting language. Not for web development, but to
I have a web scraping script that gets new data once every minute, but
I'm working on an app that does some web scraping. In the sites model,
My application has its own scripting language of which I cannot get rid of
I'm deveoping web scraping scoftware that relies on XPath to extract information from web
I'm new to PHP and web scripting in general so this a newb question.

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.