Reply to Highlighting a stored value as 'selected'

Your name:

Reply:


Posted by Alp on 02/08/05 11:14

Is there an easier way to display/highlight the value stored in the database
for a select option? Such as:
Stored value is 'center'. The statement is:
print '<select name="colalign">';
print '<option value="left">Left';
print '<option value="center">Center';
print '<option value="right">Right';
print '</select>';

I can have 3 sets of the above tied to 'if's but would rather ask for an
easier or better way.

Thanks in advance.

Alp

[Back to original 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

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