Question: Check for reference how it should run. http://drlai.altervista.org/ITEC4450/Labs/Lab3-0/Lab3-0.php Having trouble when submitting input, info goes away. Name, address, email and the choices that were picked.
Check for reference how it should run. http://drlai.altervista.org/ITEC4450/Labs/Lab3-0/Lab3-0.php
Having trouble when submitting input, info goes away. Name, address, email and the choices that were picked. Here is my php code
Student Fruit Survey
$name = $_POST['name']; $address = $_POST['address']; $email = $_POST['email']; $howMany = $_POST['howMany']; $favFruit = $_POST['favFruit']; $brochure = $_POST['brochure']; // display the values of form along with text echo '
Your name is '.$name.'
'; echo 'Your address is '.$address.'
'; echo 'Your email is '.$email.'
'; echo 'Your eat '.$howMany.' pieces of fruit each day.
'; echo 'Your favorite fruit is '.$favFruit.'
'; $brochureValue = "brochure"; if($brochure !=""){echo '
You would like a '.$brochureValue.'.
'; }} else{ } ?>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
