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
Marital Status Options
- Single
- Married
- Widowed
- Separated
- Divorced
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 use the ENUM data type to stored these values.ENUM ('Single','Married','Widowed','Separated','Divorced') | Default Value 'Single'
SQL For MySQL database:
ALTER TABLE `tbl_test` ADD `gender` ENUM('Single','Married','Widowed','Separated','Divorced') NOT NULL DEFAULT 'Single';
Marital Status Options Meaning
- Married
- Widowed
- Separated
- Divorced
- Single
Nice article. Are you looking forward to start Matrimonial PHP Script in 2022? Your wait is over because we have a team of developers and designers which can work according to your needs. so discuss and develop a unique app. PHP Matrimonial Script provided by one of the best professional matrimonial script development companies
ReplyDelete