Re: select box

From: Date: Mon, 09 Sep 2002 13:24:42 +0000
Subject: Re: select box
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-115738@lists.php.net to get a copy of this message
If you want to put the SELECTED option into your select list while you are building the page, use an if statement in the <option...> ... something like this: <OPTION VALUE=1 <?php if ($this==$that) {echo "SELECTED"; } ?>> Option 1 <OPTION VALUE=2 <?php if ($this==$that2) {echo "SELECTED"; } ?>> Option 2 Peter At 02:05 PM 9/9/2002 +0300, you wrote:
Hi, Can I put the "selected" option of select box later by using php? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- - - - - - - - - - - - - - - - - - - - - Fourth Realm Solutions pbechard@fourthrealm.com http://www.fourthrealm.com Tel: 519-739-1652 - - - - - - - - - - - - - - - - - - - - -

« previous php.general (#115738) next »