Re: Drop-down menus - Part 2

From: Date: Thu, 04 Jan 2001 13:39:28 +0000
Subject: Re: Drop-down menus - Part 2
Groups: php.db 
Request: Send a blank email to php-db+get-5594@lists.php.net to get a copy of this message
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

« previous php.db (#5594) next »