drop down menu |
drop down menu |
tudsy |
Aug 15 2016, 07:41 PM
Post
#1
|
Advanced Member Group: Members Posts: 248 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) code.txt ( 5.36k ) Number of downloads: 1561 |
CharlesEF |
Sep 13 2016, 11:57 AM
Post
#2
|
Programming Fanatic Group: Members Posts: 1,984 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: 25th September 2024 - 12:42 PM |