celtic5544
11-07-2003, 09:04 AM
I have a form I am working on (unable to give and web page at the moment because it is not a live site yet still in the development stage) and I need to do a form validation. I am REALLY new to Javascript and I am starting to understand the basic form validation, however what I have is something a little different.
The form has a list of things that a customer needs to fill out (name, address etc.). However the problem comes in when they are bringing a guest with them, or they are renting a hotel room for the night. I need to have the validation catch if they say yes to a guest then they need to enter the guest name (and if they don't put the guest name in it gives and error). If they say yes to a Hotel, they need to enter Credit Card information.
I have looked at some web sites and even had someone suggest a looping javascript but I either really don't get it or the web sites are not exactly suiting my needs. Being new to this makes parts of this really hard for me to translate what they are telling me to the in formation I have. :D
Thanks so much...
The form has a list of things that a customer needs to fill out (name, address etc.). However the problem comes in when they are bringing a guest with them, or they are renting a hotel room for the night. I need to have the validation catch if they say yes to a guest then they need to enter the guest name (and if they don't put the guest name in it gives and error). If they say yes to a Hotel, they need to enter Credit Card information.
I have looked at some web sites and even had someone suggest a looping javascript but I either really don't get it or the web sites are not exactly suiting my needs. Being new to this makes parts of this really hard for me to translate what they are telling me to the in formation I have. :D
Thanks so much...