Select button based on 2 criteria |
Select button based on 2 criteria |
skiller1234 |
Sep 5 2017, 04:10 PM
Post
#1
|
Group: Members Posts: 1 Joined: 5-September 17 Member No.: 26,488 |
Hi - brand new here and just getting started with webpages. I've figured out the basics - how to make a couple dropdowns, submit buttons etc.
However this case has me stumped. I have 2 drop down selections - the user picks 1 from each - and then a submit button to match those 2 results to a certain youtube video. For example: The first dropdown could have "Mom", and "Dad", and the second could have "kid1" and "Kid2" - each combo would link to a different video after clicking the submit button (that would have those 2 people in it). I can't figure out how to write code to match the criteria to a certain link My apologies if this is to simplistic for here.. skiller |
CharlesEF |
Sep 5 2017, 05:12 PM
Post
#2
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
Are you trying to use Javascript only? Or, is a server side language being used also? (ASP, PHP, Java....)
When you click a submit button the form is submitted and the data sent to the server for processing. If you are not using a web server then you need to use a regular button, not a submit button. And, you have to use Javascript for all your processing. |
Lo-Fi Version | Time is now: 26th April 2024 - 09:07 AM |