Jump to content

Papulated One Text Filed Values Into Another Text Filed Values


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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.