makata Posted May 20, 2013 Share Posted May 20, 2013 There are five sets of text data in variables named in the following pattern:var1_1var1_2...var1_5 var2_1......var5_5 depending on which of five radiobuttons is checked, variables chosen1...chosen5 should be assigned the data from one of the five sets. Is there a way to simplify this process, rathen than if radiobu1 checked then chosen1=var1_1 chosen2=var1_2etc ? Link to comment Share on other sites More sharing options...
niche Posted May 20, 2013 Share Posted May 20, 2013 http://www.johnhok.com/2008/02/23/php-tip-tertiary-operator/ Link to comment Share on other sites More sharing options...
jeffman Posted May 20, 2013 Share Posted May 20, 2013 Since you are using sets of data, would it be simpler to start the process by using arrays? Link to comment Share on other sites More sharing options...
makata Posted May 20, 2013 Author Share Posted May 20, 2013 I guess you are right. I will. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now