You are here: <select> value ? « PHP Programming Language « IT news, forums, messages
<select> value ?

Posted by = poster = on 10/16/06 07:10

Hi all ,

I have a script which let the user choose between four days :

Day: <select name=\"day\" value=\"$day\">
<option value=\"01\">1</option>
<option value=\"02\">2</option>
<option value=\"03\">3</option>
<option value=\"04\">4</option>
</select>

The selected number is saved in mysql database.
I have also a script which alows the user to edit their choises.
The problem is that I don't know how to set the value from the database into
the select thingy.

I know how to handel this with an:
<input type="text" name="title" value=$somvar >

But how can I do this with the select thingy ?

thanks !

 

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

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