You are here: List select query. « PHP Language « IT news, forums, messages
List select query.

Posted by Richard Brooks on 11/29/05 16:25

I've got a country list which, after selecting and the 'submit' button
is clicked, I need for the list to re-display the selected list element,
the values are for stored database referencing only and not for display.


<select name="country">
<option value="<?php echo $country;?>" SELECTED><?php echo
$country;?></option>
<option Value="AF">Afghanistan</option>
<option Value="AL">Albania</option>
<option Value="DZ">Algeria</option>
.....
<option Value="ZW">Zimbabwe</option>
</Select>


It's one of those 'mental block' days but what I need is for the list to
display the selected element text and not the value so that the user
can check their details.

Many thanks,


Richard.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация