|
Not logged in [Login - Register] |
You Are Not Registered Or Not Logged In |
Corsa Sport » Message Board » Off Day » Geek Day » Anyone know anything about Java Script/HTML » Post Reply
|
Joff |
posted on 14th Feb 04 at 18:16 |
Oops - just re-read your first post.. code: [Edited on 14-02-2004 by Joff] | |
Joff |
posted on 14th Feb 04 at 18:13 |
code: | |
ed |
posted on 14th Feb 04 at 18:09 |
Yea that makes more sense than what I'm trying to do! (My first PHP/MySQL site, so i'm getting a bit confused by it all :lol: ) | |
Dom |
posted on 14th Feb 04 at 18:07 |
no that will submit when the user changes the options in the drop down menu ;) | |
ed |
posted on 14th Feb 04 at 17:48 |
I used onChange on a different site somewhere, so i'll have a look it how I did that. Will that submit the form when the page loads though? | |
Dom |
posted on 14th Feb 04 at 17:41 |
basically, you want the drop down menu to automatically sumbit when the user selects an options? if so, then its a case of wacking a 'onchange' within the drop down menu tag and put some javascript in it :) ive forgotten how to do it (just had a play, but cant get it to work) so have a look on google mate, but its something along he lines of 'document.*formname*.submit' :) | |
ed |
posted on 14th Feb 04 at 17:28 |
I'm doing a website in PHP. I got a drop down menu at the top of a page at the moment that you select an option from to query the MySQL database. BUT to get anything to apear on the page you have to press the submit button as the query works on a form variable. Does anyone know how to get a form to submit automaticaly when a page loads. I think it would use the onLoad = tag in java script but I cant figure anything out! Does anyone on here know anything about this sorta thing??? Thanks for any help ED:thumbs: |