I have used usual dropdown list and it's not worked, when i click the submit button for all the data in the form except drop down value were sent to database.how can i fix it??
Asked
Active
Viewed 90 times
-1
-
Select Medicine – Chamin Thilakarathne Nov 05 '18 at 17:54
-
Show us your code, please. Chances are your dropdown is missing a `name `. – ceejayoz Nov 05 '18 at 17:54
-
Code should go in your question, please, not as a comment. You can edit it in. – ceejayoz Nov 05 '18 at 17:56
1 Answers
1
Your <select>
is missing a name="foo"
attribute.
A form will only submit elements with a name
as part of the request.

ceejayoz
- 176,543
- 40
- 303
- 368