English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

can anyone please help I'm going crazy I need 2 seperate drop down menus one for quantity upto 5 items and one for size from 16 to 30 can anybody help me with the html code, I really would be eternally gratefull

2007-09-22 13:25:20 · 2 answers · asked by crazy_J 2 in Computers & Internet Programming & Design

2 answers

If your options are "static" (they never change), the code given above is about right, although incomplete (missing a "SELECTED" for one line).
If your options are "dynamic" (changing accoring to a source list), you can't do it with HTML: you need to build your list on the server BEFORE sending it to HTML, ie. using PhP.
Sample of a fixed in PhP
$txt .= "";
$txt .= " Title";
$txt .= " \r\n";
$txt .= " ";
$txt .= "";

Sample of a Database built (PhP + MySQL)
//=== DROP DOWN MATERIALS ===========
$txt .= " ".htmlentities('Matériel')."
";
$txt .= " ";
$txt .= " ";

Bit complex, I agree...
Need help? mail me.

2007-09-23 01:10:06 · answer #1 · answered by just "JR" 7 · 0 0



Add as many options as you want.

2007-09-22 13:36:11 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers