NaniG Posted October 1, 2012 Share Posted October 1, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/268962-papulated-one-text-filed-values-into-another-text-filed-values/ Share on other sites More sharing options...
White_Lily Posted October 1, 2012 Share Posted October 1, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/268962-papulated-one-text-filed-values-into-another-text-filed-values/#findComment-1382053 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.