External form
Permalink
This is probably a really simple PHP question, but I can't figure it out since I'm very new to the language. I've found some tutorials online, but their answers don't really integrate with Concrete5's system.
Using the instructions on this page,http://www.concrete5.org/community/forums/chat/external_forms_file_... I created a form where people rate themselves on different questions. I calculate and store the totals in the variables '$homeTotal' and '$officeTotal" when the user clicks 'Submit'. My problem is that I then need to check if the variables fall within a certain range and display the appropriate text (ex. if ($homeScore>0 && $homeScore<=20){
$homeReportTitle='You are a level 1';
$homeReport='A level 1 score means that blah blah blah...}). I've attached a .zip containing my the .php file and the controller it references. Any help is appreciated.
Using the instructions on this page,http://www.concrete5.org/community/forums/chat/external_forms_file_... I created a form where people rate themselves on different questions. I calculate and store the totals in the variables '$homeTotal' and '$officeTotal" when the user clicks 'Submit'. My problem is that I then need to check if the variables fall within a certain range and display the appropriate text (ex. if ($homeScore>0 && $homeScore<=20){
$homeReportTitle='You are a level 1';
$homeReport='A level 1 score means that blah blah blah...}). I've attached a .zip containing my the .php file and the controller it references. Any help is appreciated.