Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001011

Re: [PHP-DB] Drop-down menus - Part 2 From: JJeffman (jjeffmanweb <email protected>)
Date: 01/04/01

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 <email protected>>
Para: PHP db <php-db <email protected>>
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 <email protected>
> For additional commands, e-mail: php-db-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>