Reply to Re: drop-down position

Your name:

Reply:


Posted by usenet+2004 on 09/14/06 15:14

@net:

> All the values should be preserved on redirection to page1.php by
> session variables, so the customer dont have to fill all the fields
> again, but only to make correction. It's easy with <input
> type="text"...
> Now the question:
> How to preserve the position choosed from first submition in
> drop-down menu since it is dynamicly populated?

Pick the value out of the session and compare it with the values in
your SELECT. It doesn't matter whether or not those values are pulled
from a database. Whichever one matches the value from the session, add
to its OPTION a selected="selected" attribute spec.

--
Jock

[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

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