Skip to main content

HTML Select Box for Gender Option | Gender Dropdown Values

HTML drop down or select box for gender options

Database structure for the gender field

The developers use this gender drop down for there HTML forms such as any registrations form, inquiry forms and applications form. Copy following HMTL code in your webpage.

<select name="gender" id="gender">
    <option value="">-Select Gender-</option>
    <option value="Male">Male</option>
    <option value="Female">Female</option>
    <option value="Other">Other</option>
</select>



Gender Option Dropdown or Select Box
Select Box of Gender

Gender Options:
  • Male
  • Female
  • Other
In the option, we can take 'M' for Male, 'F' for Female and 'O' for Other.

MySQL Database details to stored this drop down values:

Some of developers user the VARCHAR(20) to store these values in the database table. I suggest please user the ENUM data type to stored these values.

ENUM ('Male','Female','Other') | Default Value 'Male'

SQL For MySQL database:

ALTER TABLE `tbl_test` ADD `gender` ENUM('Male','Female','Other') NOT NULL DEFAULT 'Male';


Comments

Popular posts from this blog

Select Box For Marital Status Options | HTML Drop Down For Marital Status

HTML drop down or select box for Marital Status Options Database structure for the marital status field The developers use this gender drop down for there HTML forms such as any registrations form, inquiry forms and applications form. Copy following HMTL code in your webpage. <select name="marital_status" id="marital_status">     <option value="">-Select Marital Status-</option>     <option value="Single">Single</option>     <option value="Married">Married</option>     <option value="Widowed">Widowed</option>     <option value="Separated">Separated</option>     <option value="Divorced">Divorced</option> </select> Example of Marital Status Dropdown -Select Marital Status- Single Married Widowed Separated Divorced Marital Status Options Single Married Widowed Separated Divorced MySQL Data

Payment Method HTML Dropdown | Payment Method HTML Select Box Options

HTML drop down or select box for Payment Method Options Many forms need to add or show the payment method. The uses of payment method select box in the billing software, hotel/restaurant software, GST filling the form and financial and banking software or web applications. Best Deal The payment method is used for small software/web application and also large software/web application in many sectors. Copy following HMTL code in your webpage. <select name="payment_method" id="payment_method">     <option value="">-Select Payment Method-</option>     <option value="Cash">Cash</option>     <option value="Cheque">Cheque</option>     <option value="DD">DD</option>     <option value="NEFT">NEFT</option>     <option value="RTGS">RTGS</option>     <option value="IMPS">IMPS</option>     <option va