This is a discussion on "form submission with Javascript" within the JavaScript Forum section. This forum, and the thread "form submission with Javascript are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
form submission with Javascript
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
form submission with Javascript
Hello!
I am searching over the net for quite a long, but I have almost no idea concerning Javascript so I can't figure out the solution to my problem... I have a form that show a drop-down menu, which takes all its values through a Mysql database via PHP. What I want to do is to submit the form to the next page (from index.php ---> retrieve_data.php) without the need of a "Submit" button. When the user selects one of the given options, automatically he will be redirected to retrieve_data.php?id=5 for example... Thank you in advance! |
|
|
|
|||
|
Re: form submission with Javascript
You need to assign an 'onchange' function to the drop-down menu and use that to submit the form.
Edit: Just a word of warning. This can be very confusing for some end users. |
![]() |
| Tags |
| form submission |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Form Submission List Builder | jb1984 | Web Page Design | 2 | Dec 12th, 2007 18:10 |
| Form Submission page | markusdavid | Web Page Design | 3 | Sep 8th, 2007 00:50 |
| form submission and mailing problems........aaaagh | Gerry | Web Page Design | 3 | Mar 15th, 2007 10:27 |
| Problem with Form Submission Page | NewDesigner | Web Page Design | 4 | Oct 6th, 2006 09:36 |
| About form submission with Dreamweaver | a.jenery | Web Page Design | 8 | Feb 7th, 2006 11:20 |