hi
I have created a form with fields like first_name,last_name,date_of_birth,
land line---- std code, number
mobile ,address fields.....
Its working properly... but now I have to validate for
1. if i enter the land line number and mobile number then address field should be accepted?
2.If I enter the land line number without mobile number then also address field should be accepted?
3. If I enter the mobile number without land line then it should display some msg address field should be entered.....
land line number mobile number address
std code number
1. entered entered should be accept
2. entered --------------- should be accepted
3. ------------------- entered shouldn't be accepted..
please send me the code what i should include....waiting for the reply
thank you,,,,,,,,,,,,
|
|
April 1st, 2008 02:11 AM
# 2
|
Re: ruby on rails
Please do not double post your questions. I have deleted your duplicate post. Also, before any code is going to be handed over you need to make an attempt first.
Moderator
Not the answer you were looking for? Post your question . . .
174,850 Experts ready to help you find a solution.
Sign up for a free account, or
Login (if you're already a member).