Converting fields in php forms
Posted: Fri Sep 24, 2010 4:12 pm
I am trying to convert a form field into another. So let me explain this the best I can...
I have a form with some check boxes I am going to use so users can update their profile preferences. The provider I am connecting to, where all the profile data is stored (database) only has options for text boxes. So I am wondering how I can convert the values, for example, making the values "Y" and "N" for the text fields and the "Y" would have the check box checked where "N" would do the opposite.
Here is a chart to do some talking for me, in case I dropped you somewhere in the Y and N lingo. For some reason, the company hosting the database only lets us create text fields (per their customer service) so I have to find a way around this.
Thanks for your help,
Don
I have a form with some check boxes I am going to use so users can update their profile preferences. The provider I am connecting to, where all the profile data is stored (database) only has options for text boxes. So I am wondering how I can convert the values, for example, making the values "Y" and "N" for the text fields and the "Y" would have the check box checked where "N" would do the opposite.
Here is a chart to do some talking for me, in case I dropped you somewhere in the Y and N lingo. For some reason, the company hosting the database only lets us create text fields (per their customer service) so I have to find a way around this.
Thanks for your help,
Don