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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:37:39+00:00 2026-05-26T10:37:39+00:00

I have a form having login button and registeration button. Registeration Button: This button

  • 0

I have a form having login button and registeration button.

Registeration Button:

This button should deal two text boxes name and email:

<div id="regisbutton" class="regisbutton1">  
    <input type="submit" value="Register" class="regisbutton" name="registerSubmit"/> 
</div>

Login Button:

This button should also consider only two textboxes username and password:

<div id="loginbutton" class="loginbuttonclass">
    <input type="submit" value="Login" class="loginbutton" name="loginSubmit" />  
</div>

Problem is I put validation JavaScript which runs automatically and before form action it checks if text boxes are empty or not. But I want to run this JavaScript for registeration textboxes only not for login textboxes.

I have used submit type for both buttons.

  • 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-26T10:37:40+00:00Added an answer on May 26, 2026 at 10:37 am

    You are using two different actions, so you need to different forms!
    Without the <form> tag, the input button is quite useless anyway! Also don’t rely on javascript only, validate the form with php as well in case js is turned off by the client!

    So just wrap each submit button in a different form with a different action/validation and you’re done!

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

Sidebar

Related Questions

I have form with two buttons having same name but different values ,how to
I have form with one input for email and two submit buttons to subscribe
I am having trouble getting the Auth component redirect. I have a login form
I have a basic PHP form here that sends an email when submitted: <div
I have a form : <FORM name=loginForm ACTION=https://www.example.com/cgi-bin/login.pl METHOD=post> The form submits a username
I am having 2 EditFields in my login form with names Email: and Password:.
I have a shipping/billing input form and I'm having trouble styling the input fields
I have form area in my view. If I click button A , I
i have form action file in another directory but some file send to this
I have form with 1 button. when you click on the button 3 others

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.