0

According to requirements, I have added dropdown box in a field of my html form.As soon as I submit the form, all information is added to my db in phpmyadmin except that dropdown field. An error is displayed as:

"Notice: Undefined index: Country in C:\xampp\htdocs\process.php on line 13"

And information is saved in my db. "Information Added"

<div class="container13">
    <button type="submit"><a href="emsolutions.co.in" target="_blank">Submit</button></a>
</div>
<div class="container13">
    <button type="submit"><a href="emsolutions.co.in" target="_blank">Submit</button></a>
</div>

But I want it to submit with all entries.

Donald Duck
  • 8,409
  • 22
  • 75
  • 99

1 Answers1

0

You can't write muliple selection form a dropdown to a single db field.

If you have muliple values selected Country will be an array in PHP: How to get multiple selected values of select box in php?

Community
  • 1
  • 1
patrick
  • 826
  • 1
  • 9
  • 28