Thread: help w/Drop down boxes in Form
Results 1 to 3 of 3
Related
-
Script conversion from drop-down selector to check-boxes. How to? Forum: Javascript Forum
Replies: 0 -
Form drop down menu tool tips? Forum: CSS Forum
Replies: 0 -
JavaScript - Form Drop Down List Forum: Javascript Forum
Replies: 4 -
Multiple drop down form woes Forum: Javascript Forum
Replies: 1 -
Multiple drop down form woes Forum: HTML Forum
Replies: 0
-
07-27-2007, 12:32 PM #1
help w/Drop down boxes in Form
I'm using Frontpage 2003. I have a form with standard stuff like name, address, phone etc. However, I also need to add two dropdown's where the user will select A, B, C etc in the first drop down and then the choices in the second drop down will populate based on the selection in the first drop down. How do I do that and how do I get the results of what the user selected to be emailed when i hit the submit button? I am unable to link to a database for this form.
Thanks for any help
Sandy
-
07-27-2007, 06:33 PM #2
Re: help w/Drop down boxes in Form
The first part of your request, populating a second drop down box based on the value of the first drop down, is best accomplished by using javascript. You could probably find some examples of this by Googling for it (or search the forums to see if there is some sample code that does this). However, you can't use javascript to send email. That would be best done using a scripting language such as PHP. Just search Google using the search terms PHP contact form script.
Hope this helps.
Edit: You'll probably have to use FrontPage's code view to add this code.Last edited by vinyl-junkie; 07-27-2007 at 06:35 PM. Reason: More information
Music Around The World - Collecting tips, trade
and want lists, album reviews, & more
-
08-02-2007, 02:27 AM #3
Re: help w/Drop down boxes in Form
Code:ChosenValue=document.getElementById("frmsubmit").cmbrdl.selectedIndex document.getElementById("frmsubmit").cmbrdl[ChosenValue].value
i did using this method only and it worked..
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum