Jump to content

Papulated One Text Filed Values Into Another Text Filed Values


NaniG

Recommended Posts

Hi to all,

 

In my registration page, i have a headers like Company Information, Contact Information and etc.

 

Fields in company information :

 

Company Name, Address1, Address2, City, Country, State, ZipCode

 

Fields in Contact Information :

 

First Name, Middle Name, Last Name, Email Address, Phone, Address1, Address2, City, Country, State, ZipCode.

 

Country and State are two dropdowns and depending upon the selected country name the states will be appear. Am fetching the values from javascript instead of mysql database. (http://bdhacker.sourceforge.net/javascript/countries/)

 

 

I have a checkboxes Whether the Contact address is as same as the company address with "Yes" or "No".

When User cheks the "Yes" checkbox, then the Company Address text Filed values will be papulated in the respective Contact Information textbox fileds. If he cheks "No" checkbox, the Contact information fields will be validated.

 

Please suggest me how can i solve my problem.

For starters shouldn't it all be validated whether they check yes or no?

 

Why are you using javascript to do this?

 

and what exactly is it your trying to achieve and what is the problem?

 

is the problem inserting the data into a database, or selecting the data?

 

lastly, i used your "Demo" page, and they only thing that happened was i picked my country and city, and then that was it ... nothing else happened, seemed pointless really.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.