![]() |
![]() |
tudsy |
![]()
Post
#1
|
Advanced Member ![]() ![]() ![]() ![]() Group: Members Posts: 246 Joined: 30-September 14 Member No.: 21,611 ![]() |
)Hi
I am still having problems in trying to come up with a drop down menu. I have attached the full code and the resulting output (screenshot). The main problem is that I am not generating the options in the drop down menu. Can anyone help? Thanks. Attached thumbnail(s) ![]() Attached File(s) ![]() |
![]() ![]() |
CharlesEF |
![]()
Post
#2
|
Programming Fanatic ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 ![]() |
Does the page have a .php extension? Have you looked in the PHP error log? The only problem I can see is a problem we have already gone over. This line of code is wrong:
CODE $options = "<option value=".$files1.">".$files1."</option>"; The value attribute will not have the required quotes. It should be:CODE $options = "<option value='".$files1."'>".$files1."</option>"; I would write it like this:CODE echo "<option value='{$files1}'>{$files1}</option>"; |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 23rd June 2024 - 10:51 PM |