Connecting Tech Pros Worldwide Forums | Help | Site Map

ruby on rails

Newbie
 
Join Date: Feb 2008
Posts: 6
#1: Mar 28 '08
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,,,,,,,,,,,,

eWish's Avatar
Moderator
 
Join Date: Jul 2007
Location: Arkansas
Posts: 900
#2: Apr 1 '08

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
Reply