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 <[EMAIL PROTECTED]>
Para: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to