manish i am really thanks full to u but what if there is other fields is the code going to be disturbed
if i want to submit to data base the flowing:
Name (input field)
Email (input field)
Contact No (input field)
Number of cars you want to insure (this the drop box)
and if the user select from the drop down 4 the 4 input text will appear and then he will put the car registration numbers and when he press submit button the name will store in name colum in the database and email and contact no it will also and then each value of the text box will store in it is coulm like car 1 with regestation numer and the car2 with regestation number and so on
Manish Singh.....hope u ok ..i have other problem, what if i want to add 2 text box instead of one..what i mean when the user select 5 ,5box will appear but in one line it will ask him his first name and last name and how i can submit these to email like the what u did in the previous code.....