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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:38:54+00:00 2026-05-23T07:38:54+00:00

I have fields like password,conform password and gender in my registration page password edit

  • 0

I have fields like password,conform password and gender in my registration page

password edit text

conform password edit text

gender (button01)/(button02)

for password and conform password i want to validate both fields ,I mean the entries(string value) of both fields should be same. If both are same then I want to pass only password value to the server not both values and In case of gender when I click button 01, I want to pass the input as male(string) to server and same in case of female also. How can I do this?

Help is always appreciated…!

  • 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-23T07:38:54+00:00Added an answer on May 23, 2026 at 7:38 am
    • Check Password.

      Here i write one function for compare password and conform password . In that function
      you need pass both the password and it will return true if both password are same and
      return false if both are different.

       public boolean checkPassWordAndConfirmPassword(String password,String confirmPassword) 
       {
           boolean pstatus = false;
           if (confirmPassword != null && password != null) 
           {
             if (password.equals(confirmPassword)) 
             {
                  pstatus = true;
             } 
           }
          return pstatus;
      }
      
    • Gender Button

      As you said that here you are taking two button for gender . One is for male and another is for female . so you when user click on male button you have to take one string variable and assing the “male” value to that string, if user click female then you have to set “female” to that variable and pass to the server.

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

Sidebar

Related Questions

I have few text fields like SSN , phone number and email id. I
I have tried to login my server with some fields like username, password, latitude,
I have a database table with fields like: username, description, password. Sometimes, members copy
Say i have a few fields like the following: abd738927 jaksm234234 hfk342 ndma0834 jon99322
I have fields in the column that look like so: 2/8B, 3, 3/8B, 4/8B,
I have a class with fields like firstname, age, school etc. I need to
I have a user table 'users' that has fields like: id first_name last_name ...
I have a form with some generated input fields like theese: <input value=March name=month[March]
I have a favorite table containing some fields like login_id,driver_id(One login_id may have many
I have an object with large number of similar fields (like more than 10

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.