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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:50:03+00:00 2026-06-03T06:50:03+00:00

please i need your help with an issue. I have two forms on my

  • 0

please i need your help with an issue.
I have two forms on my homepage that i’ll like users to fill and submit at different times. My problem is that i’ll like to have only one processing page for both of them. Normally i can do this in seperate pages. But i’ll like to know if doing it on the same page is possible.

Okay.. If i submit form A, on the action page, wont there be Undefined Index for variable of form B, that has not being submitted, and ofcourse using a GET is not adviced.

Thanks for your time and patience.

  • 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-03T06:50:04+00:00Added an answer on June 3, 2026 at 6:50 am

    It’s not completely unheard of to do this. Quite often, a different parameter is passed in the form element’s action attribute like /submit.php?action=register or /submit.php?action=activate.

    So, you have code like this:

    if ($_GET['action'] == 'register') {
      // Register user
    } else if($_GET['action'] == 'activate' {
      // Activate user
    }
    

    However, you could also just change the value of the submit button and have the action attribute the same for both forms:

    if (isset($_POST['submit'])) {
      if ($_POST['submit'] == 'register') {
        // Register user
      } else if($_POST['submit'] == 'activate') {
        // Activate user
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need your help on one practical issue. I have created a WCF service
Please I need your help with my script. I'm trying to insert values into
Please i need your help with how to include INDEXES in my tables, i've
Need some help, please. I have a line of horizontal thumbnails loaded as ONE
I am beginner on WPF and need your help. Problem: I have 4 buttons
i need your help about this issue badly. i am trying to model a
I'm new to this ExpandableListView and I desperately need your help please. I'm using
I really need your help in my issue very quickly and it's too close
Please i need your help. I'm scripting a comment functionality on my website, and
Please your opinion on the following code. I need to calculate the diff in

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.