Keep state of a selected field?

From: Date: Sat, 06 Apr 2002 13:42:15 +0000
Subject: Keep state of a selected field?
Groups: php.db 
Request: Send a blank email to php-db+get-18273@lists.php.net to get a copy of this message
Hi All I have a dynamic drop down list that work perfectly. But what I would like to do is when a user selects where to got That the selection is shown on the next page as the selected item. And if they change this selection that it is then shown as the selected item. Any pointers of ideas are appreciated as always. At the moment I am trying this: If(isset($selection)){ $selected ="<option selected=\"selected\" value=\"$selection\">$selection</option>"; } else { whatever. } then echoing result on page. The variables shown are not the ones being used, just shown for displaying the way I am trying at the moment. Keep happy Dave Carrera Php Developer http://davecarrera.freelancers.net http://www.davecarrera.com

« previous php.db (#18273) next »