Re: Drop down box

From: Date: Thu, 01 Mar 2001 21:32:04 +0000
Subject: Re: Drop down box
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-7062@lists.php.net to get a copy of this message
The action you want is only available using JavaScript. You need to submit the form without a submit button. The "<select>" tag has the "OnChange" event which is scriptable. You can use the JavaScript statement "this.form.submit();" associated with the "OnChange" event. <form>... <select name="x" OnChange="this.form.submit();"><option...>... </select>...</form> HTH Jayme. -----Mensagem Original----- De: Matthew Cothier <matthewcothier@hotmail.com> Para: <php-db@lists.php.net> Enviada em: quinta-feira, 1 de março de 2001 10:55 Assunto: [PHP-DB] Drop down box > How do I get my select form to select a value for $num_view and refesh the > page? > > SELECT * FROM table_name ORDER BY n_id DESC LIMIT $num_view > > I now need a dropdown box that has set values for 5,10,15 and 20 so that the > user can select a number of news articles to view and it will refresh the > page and show that many? > > How can I do this without a button needing to be pressed? > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at > http://www.hotmail.com. > > > -- > 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 (#7062) next »