Question: please help me with this, this is the code I wa given but i dont know how to get the last part to show up,
please help me with this,
this is the code I wa given but i dont know how to get the last part to show up, do I create a new file for the feedback? please help
PHP Form Directions: Create a PHP form to do the following: Box around options, use labels to make text sensitive Validate that at least one of several checkboxes are checked, that a radio button is checked. Validate a textbox: a range of integers (xx-yy) Must be a PHP script simply echoes back the values. Radio buttons: income level: below $25K, $25K-$49,999, $50K-$7kK, over $75K Check boxes: Activities: Attend church, Go to the cinema, Go to music concerts, None of the above (use different values for the name attributes) If none of the first three checkboxes is checked, the raise a confirm box asking the user whether he means None of the above. If so, click it. If not, suppress submission, If the text box value is not in the proper format, suppress submission and select the text box. PHP Script Requirements Select gender (Male or Femaleradio buttons) First and last names (text boxes) If the gender is male, response contains a form asking about height and weight (text boxes) If the gender is female, the response contains a form that asks for age and marital status (single, married, divorced). Income Validation Progaram Income:
if(isset($error_msg) && count($error_msg) == 0){ echo "Your Income is".$_POST['income_val']." "; echo "Your Income level is ".$_POST['income']." "; echo "Acivity You Select :".$_POST['mychk']." "; echo "Gender :".$_POST['gender']." "; echo "submitted successfully"; } else{ foreach ($error_msg as $result) { echo $result; echo " "; } }
} ?>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
