Skip to content
Advertisement

Dropdown value does not passing to SQL query (dropdown value came from a table)

This is my html form where i fetch a dropdown value from a table. i want to insert this dropdown value to a another table.

JavaScript

my php code is following

JavaScript

everything works perfectly when i removed the dropdown from the form.

Advertisement

Answer

I have just solved the problem by using foreach function. this may be helpful for someone who visiting this page.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement