Re: [PHP] Auto submit form, How?
Fates <[EMAIL PROTECTED]> wrote: > How do I auto load or auto submit a form on the same page? I don't want > to have to press the submit button instead just click on a value in the > drop down form and it loads (I am lazy). > use javascript, to find you answer look here http://www.developer.irt.org/script/script.htm -- Henrik Hansen -- PHP General 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]
Re: [PHP] Auto submit form
David wrote: > How do I autoload a selection from a drop down menu form based on the > selection without having to click a submit button? Everything to do with forms is either to do with hitting a submit button (call to a server) or without (which means that the browser/client is handling it), so anything you want to do (like auto-submits, dynamic pop-ups, etc etc) is done via the browser -- Javascript would be the obvious one. I Suggest looking at onChange and onBlur attributes of elements for more info. As per usual, you'll probably be able to learn quite a bit by looking at the HTML/JavaScript source code of a page that already does it. It's not really PHP related, try to think of it as a HTML / browser / client side issue. Also, be aware that you shoudl still prolly include a submit button, so that people with stone age browsers, or worse still, javascript turned off, can still submit the form and use your site. I saw an e-commerce site once that ignored this basic little rule, thus preventing sales to those without javascript. I don't think any online store is doing well enough yet to start excluding customers :) Justin French Creative Director Indent.com.au -- PHP General 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]
Re: [PHP] Auto submit form, How?
http://www.devguru.com/Technologies/ecmascript/quickref/select.html Javascript. Use onBlur or onChange and call document.formname.submit(). Pete. "Fates" <[EMAIL PROTECTED]> wrote in message 20010629125135.ELXV13240.femail10.sdc1.sfba.home.com@localhost">news:20010629125135.ELXV13240.femail10.sdc1.sfba.home.com@localhost... > How do I auto load or auto submit a form on the same page? I don't want > to have to press the submit button instead just click on a value in the > drop down form and it loads (I am lazy). > > Using php4.something > > -- > This email was sent using w3mail. > > > -- > PHP General 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 General 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]