PDA

View Full Version : my drop down menu isn't valid... little help?




brianellisrules
Mar 15, 2004, 10:48 PM
http://www.brianellisrules.com/stickers/upload/

Everything appears to be legit except for the drop down menu... I've tried finding resources online via a google search, but most of what I find uses javascript and I don't think it's necessary for my application. Maybe I'm an idiot, but I couldn't find any tutorials or any info about straight up html forms/drop down menus.



Rower_CPU
Mar 16, 2004, 12:28 AM
OK, form attributes...http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.3

"action" should contain the name/URL of the page the form info should go to, and the "method" will be "post" (variables not displayed in the address bar) or "get" (variables displayed in the address bar). I prefer post for security and prettiness of location URLs.

Fix that and you should be set.

brianellisrules
Mar 16, 2004, 08:54 AM
Cool, thanks. I fixed the action and method, but I don't think it likes the form in general... Here's the one remaining error:

Line 42, column 74: document type does not allow element "FORM" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME" start-tag

...="/stickers/upload/index.php" method="post">

Rower_CPU
Mar 16, 2004, 12:18 PM
Did you try moving it out of the <span>? I've had errors like that when things were improperly nested or block elements were inside inline ones.

Something to try...

brianellisrules
Mar 16, 2004, 12:52 PM
Did you try moving it out of the <span>? I've had errors like that when things were improperly nested or block elements were inside inline ones.

Something to try...
I moved the <span>'s inside the <form> tags and it worked. Cool and the gang.