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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:11:07+00:00 2026-05-15T19:11:07+00:00

1st question is isit ok to have more than 1 form per page? i

  • 0

1st question is isit ok to have more than 1 form per page? i read dunno where that 1 page shld have only 1 form, true?

assuming you do login and register form in 1 page, i think there are 2 approaches

  • 2 separate forms -> isit ok for form input[name] to be reused? eg. both login and register will have username & passwords field
  • 1 form. use JS to hide confirmPassword field then at server side check if there is a confirmPassword is filled? upon typing this, this does not seem like a good idea…
  • 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-15T19:11:07+00:00Added an answer on May 15, 2026 at 7:11 pm

    1st question is isit ok to have more than 1 form per page?

    Yes, it’s ok.

    isit ok for form input[name] to be reused? eg. both login and register will have username & passwords field

    Yes, it’s ok. You can place two inputs with the same name (in different forms). Only ‘id’ attribute must be unique. You should set different actions for form. For example, the first form will be <form action='login.php'>, the second – <form action='register.php'>

    1 form. use JS to hide confirmPassword field then at server side check if there is a confirmPassword is filled? upon typing this, this does not seem like a good idea…

    It’s better to create input with type=hidden and place action type in it:

    <input type='hidden' name='action' value='login'>
    

    You can change value with Js.

    Also you can create two submit buttons in one form:

    <input type='submit' name='do_login' value='Login'>
    <input type='submit' name='do_register' value='Register'>
    

    If login button pressed, the server will receive ‘do_login’ argument. Else, it will receive ‘do_register’.

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

Sidebar

Related Questions

1st Question: I'm trying to make the create method work, but it appears that
I have a site orders.something.com and other site hr.something.com. My 1st question should I
So that you don't have to read all of the below, the crux of
Good day, This is more web service design than programming question I think. I'll
I have 2 questions...my 1st question is how do I limit the number of
I have 2 C++ Class questions: The 1st question is: How can I make
1st Question Asked!! :) I have a Visual Studio 2010 project in which I
1st Question: How do I get the title and subtitle of a selected annotation?
1st I have to say I know nothing bout php. I was actually doing
I have 2 tables: 1st holds employees (of ones in any position) and 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.