php code to check muliple conditions
I am new to php, i have been learning PHP for while. For my site i need a php code to check multiple conditions to populate the result
HTML form code
a = optionA, optionB, optionC, optionD
b = 5
c = 3
Here i need to check "a" is optionA or optionB, optionC or option D
if variable a = optionA
then the code should assign optionA = 6
and d = 6*5*3
if variable b = optionB
then the code should assign optionB = 9
and d = 9*5*3
if variable c = optionB
then the code should assign optionC = 11
and d = 11*5*3
if variable a = optionD
then the code should assign optionD = 15
and d = 15*5*3
Guys help me to find the code :(
Thanks in advance
Show the form where they pick the options.
That will give us the info we need to answer this.
We need to see if you're using radio buttons, checkboxes, etc.
and we need to see how you're defining the form variable names.
|All times are GMT +1. The time now is 12:50 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.