On 17 June 2004 14:27, Phpu wrote: > Here is the code: > > <select name="model" class="gform" > onchange="model_jump('parent', this)"> > <option value="0"> > <? > foreach ($nav_model_names as $index => $element) { > $InputString = "$element"; > echo "$InputString"; > } > > </option> > </select>
Each option needs to be in, er, <option></option> tags, do you want something like: foreach ($nav_model_names as $index => $element) { echo "<option value='$index'>$element</option>\n"; } Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php