dakke Posted March 24, 2008 Share Posted March 24, 2008 I'm new to PHP, HTML, MySQL,... but I thought that this would be rather simple. I want a drop down box, using values from a mysql field. It works just fine, the php that is, but when I integrate it with a form, nothing happens. This is the code: <select name="category"> <?php include('php/DropdownCategory.php'); ?> </select> The actual php file works, I created a drop down. But when added to the form (this section is part of a bigger form, so the <form> tags are in place) it creates 2 drop downs. One completely empty, the other the actual php drop down. So it seems that the select does not use the php drop down, but creates an additional one. What am I doing wrong? Quote Link to comment Share on other sites More sharing options...
dakke Posted March 24, 2008 Author Share Posted March 24, 2008 Can someone delete this message? It was an error in the php file. A double select conflicted. Quote Link to comment Share on other sites More sharing options...
haku Posted March 25, 2008 Share Posted March 25, 2008 You are going to have to show a lot more code that that if you want an answer (the quality and accuracy of an an answer is directly proportional to the quality and detail of the question). At the very least, post the contents of dropDownCategory.php. That may be enough. But if you want to be sure, post the rest of the code for the form as well. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.