Re: Drop-down menus - Part 2

From: Date: Thu, 04 Jan 2001 21:32:16 +0000
Subject: Re: Drop-down menus - Part 2
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-5602@lists.php.net to get a copy of this message
How about use JavaScript and set up the selectedIndex property of the selection list ? Jayme. http://www.conex.com.br/jjeffman -----Mensagem Original----- De: Jochen Kaiser <JKaiser@suk-s.de> Para: PHP db <php-db@lists.php.net> Enviada em: quinta-feira, 4 de janeiro de 2001 11:39 Assunto: Re: [PHP-DB] Drop-down menus - Part 2 > Salvete, > > I have yet another problem with drop-down-menues, although > the situation is a little different. > (and this is probably not the 100% right forum for this, but...) > > A user is logged (session) in and can enter data in a form. > > This data is posted to the next page, which allows the user > to preview the data and then the data is stored via > session_register(). > > If the user returns to the previous page (via back button) this > data is reentered from the session's global variables, via > "value=$some_var" in the form's fields, with one exception. > Drop-down-boxes, those can only be preselected (defaulted) by > placing the command "selected" in the OPTION-HTML-tag and thus > are not restored to their previous values. > > Any ideas on how to restore them in an easy way? > > Best regards, > > Jochen Kaiser > > <snip - thanx - I needed that one too> > > > hello all, this is a piece of code i made, it works... > > some of the vars name are in portuguese. my first language. > > as the query but if you know a bit of sql and how php you will put > > this > > working fast > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#5602) next »