I have a multi page form that uses hidden fields to pass the submitted data.
The final page displays the results to the user, this is working fine.
If the user is happy they submit the form which is then emailed to me and they are forwarded to a thank you page.
There must be something wrong with my code as there is no redirecting to the thank you page and no email being sent.
My processing code is as follows:
<?php
$my_email ='admin@acrodancer.com';
session_start();
$first_name = $_POST['first_name'];
$surname=$_POST['surname'];
$dob=$_POST['dob'];
$email=$_POST['email'];
$gender_radio=$_POST['gender_radio'];
$parent_name=$_POST['parent_name'];
$short_term=$_POST['short_term'];
$long_term=$_POST['long_term'];
$coach = $_POST['coach'];
$reg_number = $_POST['reg_number'];
$date=$_POST['date'];
$flex_neck_radio=$_POST['flex_neck_radio'];
$flex_neck_comments=$_POST['flex_neck_comments'];
$flex_neck_recommendations=$_POST['flex_neck_recommendations'];
$flex_shoulders_radio=$_POST['flex_shoulders_radio'];
$flex_shoulders_comments=$_POST['flex_shoulders_comments'];
$flex_shoulders_recommendations=$_POST['flex_shoulders_recommendations'];
$flex_wrists_recommendations=$_POST['flex_wrists_recommendations'];
$flex_wrists_radio=$_POST['flex_wrists_radio'];
$flex_wrists_comments=$_POST['flex_wrists_comments'];
$flex_upper_arms_recommendations=$_POST['flex_upper_arms_recommendations'];
$flex_upper_arms_radio=$_POST['flex_upper_arms_radio'];
$flex_upper_arms_comments=$_POST['flex_upper_arms_comments'];
$flex_upper_back_radio=$_POST['flex_upper_back_radio'];
$flex_upper_back_comments=$_POST['flex_upper_back_comments'];
$flex_upper_back_recommendations=$_POST['flex_upper_back_rrecommendations'];
$flex_mid_back_radio=$_POST['flex_mid_back_radio'];
$flex_mid_back_comments=$_POST['flex_mid_back_comments'];
$flex_mid_back_recommendations=$_POST['flex_mid_back_rrecommendations'];
$flex_low_back_radio=$_POST['flex_low_back_radio'];
$flex_low_back_comments=$_POST['flex_low_back_comments'];
$flex_low_back_recommendations=$_POST['flex_low_back_rrecommendations'];
$flex_sides_radio=$_POST['flex_sides_radio'];
$flex_sides_comments=$_POST['flex_sides_comments'];
$flex_sides_recommendations=$_POST['flex_sides_rrecommendations'];
$flex_pelvis_radio=$_POST['flex_pelvis_radio'];
$flex_pelvis_comments=$_POST['flex_pelvis_comments'];
$flex_pelvis_recommendations=$_POST['flex_pelvis_recommendations'];
$flex_upper_legs_front_radio=$_POST['flex_upper_legs_front_radio'];
$flex_upper_legs_front_comments=$_POST['flex_upper_legs_front_comments'];
$flex_upper_legs_front_recommendations=$_POST['flex_upper_legs_front_recommendations'];
$flex_upper_legs_back_radio=$_POST['flex_upper_legs_back_radio'];
$flex_upper_legs_back_comments=$_POST['flex_upper_legs_back_comments'];
$flex_upper_legs_back_recommendations=$_POST['flex_upper_legs_back_recommendations'];
$flex_lower_legs_radio=$_POST['flex_lower_legs_radio'];
$flex_lower_legs_comments=$_POST['flex_lower_legs_comments'];
$flex_lower_legs_recommendations=$_POST['flex_lower_legs_recommendations'];
$flex_ankles_radio=$_POST['flex_ankles_radio'];
$flex_ankles_comments=$_POST['flex_ankles_comments'];
$flex_ankles_recommendations=$_POST['flex_ankles_comments'];
$strength_neck_radio=$_POST['strength_neck_radio'];
$strength_neck_comments=$_POST['strength_neck_comments'];
$strength_neck_recommendations=$_POST['strength_neck_recommendations'];
$strength_shoulders_radio=$_POST['strength_shoulders_radio'];
$strength_shoulders_comments=$_POST['strength_shoulders_comments'];
$strength_shoulders_recommendations=$_POST['strength_shoulders_recommendations'];
$strength_wrists_recommendations=$_POST['strength_wrists_recommendations'];
$strength_wrists_radio=$_POST['strength_wrists_radio'];
$strength_wrists_comments=$_POST['strength_wrists_comments'];
$strength_upper_arms_recommendations=$_POST['strength_upper_arms_recommendations'];
$strength_upper_arms_radio=$_POST['strength_upper_arms_radio'];
$strength_upper_arms_comments=$_POST['strength_upper_arms_comments'];
$strength_upper_back_radio=$_POST['strength_upper_back_radio'];
$strength_upper_back_comments=$_POST['strength_upper_back_comments'];
$strength_upper_back_recommendations=$_POST['strength_upper_back_rrecommendations'];
$strength_mid_back_radio=$_POST['strength_mid_back_radio'];
$strength_mid_back_comments=$_POST['strength_mid_back_comments'];
$strength_mid_back_recommendations=$_POST['strength_mid_back_rrecommendations'];
$strength_low_back_radio=$_POST['strength_low_back_radio'];
$strength_low_back_comments=$_POST['strength_low_back_comments'];
$strength_low_back_recommendations=$_POST['strength_low_back_rrecommendations'];
$strength_sides_radio=$_POST['strength_sides_radio'];
$strength_sides_comments=$_POST['strength_sides_comments'];
$strength_sides_recommendations=$_POST['strength_sides_rrecommendations'];
$strength_pelvis_radio=$_POST['strength_pelvis_radio'];
$strength_pelvis_comments=$_POST['strength_pelvis_comments'];
$strength_pelvis_recommendations=$_POST['strength_pelvis_recommendations'];
$strength_upper_legs_front_radio=$_POST['strength_upper_legs_front_radio'];
$strength_upper_legs_front_comments=$_POST['strength_upper_legs_front_comments'];
$strength_upper_legs_front_recommendations=$_POST['strength_upper_legs_front_recommendations'];
$strength_upper_legs_back_radio=$_POST['strength_upper_legs_back_radio'];
$strength_upper_legs_back_comments=$_POST['strength_upper_legs_back_comments'];
$strength_upper_legs_back_recommendations=$_POST['strength_upper_legs_back_recommendations'];
$strength_lower_legs_radio=$_POST['strength_lower_legs_radio'];
$strength_lower_legs_comments=$_POST['strength_lower_legs_comments'];
$strength_lower_legs_recommendations=$_POST['strength_lower_legs_recommendations'];
$strength_ankles_radio=$_POST['strength_ankles_radio'];
$strength_ankles_comments=$_POST['strength_ankles_comments'];
$strength_ankles_recommendations=$_POST['strength_ankles_comments'];
$balance_hands_radio=$_POST['balance_hands_radio'];
$balance_hands_comments=$_POST['balance_hands_comments'];
$balance_hands_recommendations=$_POST['balance_hands_comments'];
$balance_legs_radio=$_POST['balance_legs_radio'];
$balance_legs_comments=$_POST['balance_legs_comments'];
$balance_legs_recommendations=$_POST['balance_legss_comments'];
$balance_elbows_radio=$_POST['balance_elbows_radio'];
$balance_elbows_comments=$_POST['balance_elbows_comments'];
$balance_elbows_recommendations=$_POST['balance_elbows_comments'];
$balance_knees_radio=$_POST['balance_knees_radio'];
$balance_knees_comments=$_POST['balance_knees_comments'];
$balance_knees_recommendations=$_POST['balance_knees_comments'];
$balance_floor_radio=$_POST['balance_floor_radio'];
$balance_floor_comments=$_POST['balance_floor_comments'];
$balance_floor_recommendations=$_POST['balance_floor_comments'];
$balance_combined_radio=$_POST['balance_combined_radio'];
$balance_combined_comments=$_POST['balance_combined_comments'];
$balance_combined_recommendations=$_POST['balance_combined_comments'];
$skills_floor_radio=$_POST['skills_floor_radio'];
$skills_floor_comments=$_POST['skills_floor_comments'];
$skills_floor_recommendations=$_POST['skills_floor_comments'];
$skills_flips_radio=$_POST['skills_flips_radio'];
$skills_flips_comments=$_POST['skills_flips_comments'];
$skills_flips_recommendations=$_POST['skills_flips_comments'];
$skills_aerial_radio=$_POST['skills_aerial_radio'];
$skills_aerial_comments=$_POST['skills_aerial_comments'];
$skills_aerial_recommendations=$_POST['skills_aerial_comments'];
$skills_combined_radio=$_POST['skills_combined_radio'];
$skills_combined_comments=$_POST['skills_combined_comments'];
$skills_combined_recommendations=$_POST['skills_combined_comments'];
$hyper_elbows_radio=$_POST['hyper_elbows_radio'];
$hyper_knees_radio=$_POST['hyper_knees_radio'];
$special_needs_comments=$_POST['special_needs_comments'];
$theory_radio=$_POST['theory_radio'];
$theory_comments=$_POST['theory_comments'];
$theory_recommendations=$_POST['theory_recommendations'];
$general_comments=$_POST['general_comments'];
$recommendations=$_POST['recommendations'];
$strength_core_radio=$_POST['strength_core_radio'];
$strength_core_comments=$_POST['strength_core_comments'];
$strength_core_recommendations=$_POST['strength_core_recommendations'];
if(isset($_POST['submit']))
{
$first_name = $_POST['first_name'];
$surname=$_POST['surname'];
$dob=$_POST['dob'];
$email=$_POST['email'];
$gender_radio=$_POST['gender_radio'];
$parent_name=$_POST['parent_name'];
$short_term=$_POST['short_term'];
$long_term=$_POST['long_term'];
$coach = $_POST['coach'];
$reg_number = $_POST['reg_number'];
$date=$_POST['date'];
$flex_neck_radio=$_POST['flex_neck_radio'];
$flex_neck_comments=$_POST['flex_neck_comments'];
$flex_neck_recommendations=$_POST['flex_neck_recommendations'];
$flex_shoulders_radio=$_POST['flex_shoulders_radio'];
$flex_shoulders_comments=$_POST['flex_shoulders_comments'];
$flex_shoulders_recommendations=$_POST['flex_shoulders_recommendations'];
$flex_wrists_recommendations=$_POST['flex_wrists_recommendations'];
$flex_wrists_radio=$_POST['flex_wrists_radio'];
$flex_wrists_comments=$_POST['flex_wrists_comments'];
$flex_upper_arms_recommendations=$_POST['flex_upper_arms_recommendations'];
$flex_upper_arms_radio=$_POST['flex_upper_arms_radio'];
$flex_upper_arms_comments=$_POST['flex_upper_arms_comments'];
$flex_upper_back_radio=$_POST['flex_upper_back_radio'];
$flex_upper_back_comments=$_POST['flex_upper_back_comments'];
$flex_upper_back_recommendations=$_POST['flex_upper_back_rrecommendations'];
$flex_mid_back_radio=$_POST['flex_mid_back_radio'];
$flex_mid_back_comments=$_POST['flex_mid_back_comments'];
$flex_mid_back_recommendations=$_POST['flex_mid_back_rrecommendations'];
$flex_low_back_radio=$_POST['flex_low_back_radio'];
$flex_low_back_comments=$_POST['flex_low_back_comments'];
$flex_low_back_recommendations=$_POST['flex_low_back_rrecommendations'];
$flex_sides_radio=$_POST['flex_sides_radio'];
$flex_sides_comments=$_POST['flex_sides_comments'];
$flex_sides_recommendations=$_POST['flex_sides_rrecommendations'];
$flex_pelvis_radio=$_POST['flex_pelvis_radio'];
$flex_pelvis_comments=$_POST['flex_pelvis_comments'];
$flex_pelvis_recommendations=$_POST['flex_pelvis_recommendations'];
$flex_upper_legs_front_radio=$_POST['flex_upper_legs_front_radio'];
$flex_upper_legs_front_comments=$_POST['flex_upper_legs_front_comments'];
$flex_upper_legs_front_recommendations=$_POST['flex_upper_legs_front_recommendations'];
$flex_upper_legs_back_radio=$_POST['flex_upper_legs_back_radio'];
$flex_upper_legs_back_comments=$_POST['flex_upper_legs_back_comments'];
$flex_upper_legs_back_recommendations=$_POST['flex_upper_legs_back_recommendations'];
$flex_lower_legs_radio=$_POST['flex_lower_legs_radio'];
$flex_lower_legs_comments=$_POST['flex_lower_legs_comments'];
$flex_lower_legs_recommendations=$_POST['flex_lower_legs_recommendations'];
$flex_ankles_radio=$_POST['flex_ankles_radio'];
$flex_ankles_comments=$_POST['flex_ankles_comments'];
$flex_ankles_recommendations=$_POST['flex_ankles_comments'];
$strength_neck_radio=$_POST['strength_neck_radio'];
$strength_neck_comments=$_POST['strength_neck_comments'];
$strength_neck_recommendations=$_POST['strength_neck_recommendations'];
$strength_shoulders_radio=$_POST['strength_shoulders_radio'];
$strength_shoulders_comments=$_POST['strength_shoulders_comments'];
$strength_shoulders_recommendations=$_POST['strength_shoulders_recommendations'];
$strength_wrists_recommendations=$_POST['strength_wrists_recommendations'];
$strength_wrists_radio=$_POST['strength_wrists_radio'];
$strength_wrists_comments=$_POST['strength_wrists_comments'];
$strength_upper_arms_recommendations=$_POST['strength_upper_arms_recommendations'];
$strength_upper_arms_radio=$_POST['strength_upper_arms_radio'];
$strength_upper_arms_comments=$_POST['strength_upper_arms_comments'];
$strength_upper_back_radio=$_POST['strength_upper_back_radio'];
$strength_upper_back_comments=$_POST['strength_upper_back_comments'];
$strength_upper_back_recommendations=$_POST['strength_upper_back_rrecommendations'];
$strength_mid_back_radio=$_POST['strength_mid_back_radio'];
$strength_mid_back_comments=$_POST['strength_mid_back_comments'];
$strength_mid_back_recommendations=$_POST['strength_mid_back_rrecommendations'];
$strength_low_back_radio=$_POST['strength_low_back_radio'];
$strength_low_back_comments=$_POST['strength_low_back_comments'];
$strength_low_back_recommendations=$_POST['strength_low_back_rrecommendations'];
$strength_sides_radio=$_POST['strength_sides_radio'];
$strength_sides_comments=$_POST['strength_sides_comments'];
$strength_sides_recommendations=$_POST['strength_sides_rrecommendations'];
$strength_pelvis_radio=$_POST['strength_pelvis_radio'];
$strength_pelvis_comments=$_POST['strength_pelvis_comments'];
$strength_pelvis_recommendations=$_POST['strength_pelvis_recommendations'];
$strength_upper_legs_front_radio=$_POST['strength_upper_legs_front_radio'];
$strength_upper_legs_front_comments=$_POST['strength_upper_legs_front_comments'];
$strength_upper_legs_front_recommendations=$_POST['strength_upper_legs_front_recommendations'];
$strength_upper_legs_back_radio=$_POST['strength_upper_legs_back_radio'];
$strength_upper_legs_back_comments=$_POST['strength_upper_legs_back_comments'];
$strength_upper_legs_back_recommendations=$_POST['strength_upper_legs_back_recommendations'];
$strength_lower_legs_radio=$_POST['strength_lower_legs_radio'];
$strength_lower_legs_comments=$_POST['strength_lower_legs_comments'];
$strength_lower_legs_recommendations=$_POST['strength_lower_legs_recommendations'];
$strength_ankles_radio=$_POST['strength_ankles_radio'];
$strength_ankles_comments=$_POST['strength_ankles_comments'];
$strength_ankles_recommendations=$_POST['strength_ankles_comments'];
$balance_hands_radio=$_POST['balance_hands_radio'];
$balance_hands_comments=$_POST['balance_hands_comments'];
$balance_hands_recommendations=$_POST['balance_hands_comments'];
$balance_legs_radio=$_POST['balance_legs_radio'];
$balance_legs_comments=$_POST['balance_legs_comments'];
$balance_legs_recommendations=$_POST['balance_legss_comments'];
$balance_elbows_radio=$_POST['balance_elbows_radio'];
$balance_elbows_comments=$_POST['balance_elbows_comments'];
$balance_elbows_recommendations=$_POST['balance_elbows_comments'];
$balance_knees_radio=$_POST['balance_knees_radio'];
$balance_knees_comments=$_POST['balance_knees_comments'];
$balance_knees_recommendations=$_POST['balance_knees_comments'];
$balance_floor_radio=$_POST['balance_floor_radio'];
$balance_floor_comments=$_POST['balance_floor_comments'];
$balance_floor_recommendations=$_POST['balance_floor_comments'];
$balance_combined_radio=$_POST['balance_combined_radio'];
$balance_combined_comments=$_POST['balance_combined_comments'];
$balance_combined_recommendations=$_POST['balance_combined_comments'];
$skills_floor_radio=$_POST['skills_floor_radio'];
$skills_floor_comments=$_POST['skills_floor_comments'];
$skills_floor_recommendations=$_POST['skills_floor_comments'];
$skills_flips_radio=$_POST['skills_flips_radio'];
$skills_flips_comments=$_POST['skills_flips_comments'];
$skills_flips_recommendations=$_POST['skills_flips_comments'];
$skills_aerial_radio=$_POST['skills_aerial_radio'];
$skills_aerial_comments=$_POST['skills_aerial_comments'];
$skills_aerial_recommendations=$_POST['skills_aerial_comments'];
$skills_combined_radio=$_POST['skills_combined_radio'];
$skills_combined_comments=$_POST['skills_combined_comments'];
$skills_combined_recommendations=$_POST['skills_combined_comments'];
$hyper_elbows_radio=$_POST['hyper_elbows_radio'];
$hyper_knees_radio=$_POST['hyper_knees_radio'];
$special_needs_comments=$_POST['special_needs_comments'];
$theory_radio=$_POST['theory_radio'];
$theory_comments=$_POST['theory_comments'];
$theory_recommendations=$_POST['theory_recommendations'];
$general_comments=$_POST['general_comments'];
$recommendations=$_POST['recommendations'];
$strength_core_radio=$_POST['strength_core_radio'];
$strength_core_comments=$_POST['strength_core_comments'];
$strength_core_recommendations=$_POST['strength_core_recommendations'];
//send the email
$to = $my_email;
$subject="New student assessment";
$from = $my_email;
$ip = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '';
$body = "A coach $coach submitted the assessment form:\n".
"Student Name: $first_name\n".
"Surname: $surname\n".
"Date of birth: $dob\n".
"Email: $email\n".
"Gender:$gender_radio\n".
"Parent: $parent_name\n".
"Short Term Goals: $short_term\n".
"Long Term Goals: $long_term\n".
"Coach: $coach\n".
"Registration: $reg_number\n".
"Date: $date\n".
"flex_neck_radio: $flex_neck_radio\n".
"flex_neck_comments: $flex_neck_comments\n".
"flex_neck recommendations: $flex_neck_recommendations\n".
"flex shoulders: $flex_shoulders_radio\n".
"flex shoulders comments: $flex_shoulders_comments\n".
"flex shoulders recommendations:$flex_shoulders_recommendations\n".
"flex wrists: $flex_wrists_radio\n".
"flex wrists comments: $flex_wrists_comments\n".
"flex wrists recommendations: $flex_wrists_recommendations\n".
"flex upper arms: $flex_upper_arms_radio\n".
"flex upper arms: $flex_upper_arms_comments\n".
"flex upper arms recommendations: $flex_upper_arms_recommendations\n".
"flex_upper back: $flex_upper_back_radio\n".
"flex upper back comments: $flex_upper_back_comments\n".
"flex upper back recommendations: $flex_upper_back_recommendations\n".
"flex mid back: $flex_mid_back_radio\n".
"flex mid back comments: $flex_mid_back_comments\n".
"flex mid back recommendations: $flex_mid_back_recommendations\n".
"flex low back: $flex_low_back_radio\n".
"flex low back comments: $flex_low_back_comments\n".
"flex low back recommendations: $flex_low_back_recommendations\n".
"flex sides: $flex_sides_radio\n".
"flex sides commetns: $flex_sides_comments\n".
"flex sides recommendations: $flex_sides_recommendations\n".
"flex pelvis: $flex_pelvis_radio\n".
"flex pelvis comments: $flex_pelvis_comments\n".
"flex pelvis recommendations: $flex_pelvis_recommendations\n".
"flex upper legs front: $flex_upper_legs_front_radio\n".
"flex upper legs front comments: $flex_upper_legs_front_comments\n".
"flex upper legs front recommendations: $flex_upper_legs_front_recommendations\n".
"flex upper legs back: $flex_upper_legs_back_radio\n".
"flex upper legs back comments: $flex_upper_legs_back_comments\n".
"flex upper legs back recommendations: $flex_upper_legs_back_recommendations\n".
"flex lower legs: $flex_lower_legs_radio\n".
"flex lower legs comments: $flex_lower_legs_comments\n".
"flex lower legs recommendations: $flex_lower_legs_recommendations\n".
"flex ankles: $flex_ankles_radio\n".
"flex ankles commetns: $flex_ankles_comments\n".
"flex ankles recommensations: $flex_ankles_recommendations\n".
"strength\n".
"neck: $strength_neck_radio\n".
"$strength_neck_comments\n".
"$strength_neck_recommendations\n".
"shoulders: $strength_shoulders_radio\n".
"$strength_shoulders_comments\n".
"$strength_shoulders_recommendations\n".
"wrists: $strength_wrists_recommendations\n".
"$strength_wrists_radio\n".
"$strength_wrists_comments\n".
"upper arms: $strength_upper_arms_recommendations\n".
"$strength_upper_arms_radio\n".
"$strength_upper_arms_comments\n".
"upper back: $strength_upper_back_radio\n".
"$strength_upper_back_comments\n".
"$strength_upper_back_recommendations\n".
"mid back: $strength_mid_back_radio\n".
"$strength_mid_back_comments\n".
"$strength_mid_back_recommendations\n".
"low back: $strength_low_back_radio\n".
"$strength_low_back_comments\n".
"$strength_low_back_recommendations\n".
"sides: $strength_sides_radio\n".
"$strength_sides_comments\n".
"$strength_sides_recommendations\n".
"pelvis: $strength_pelvis_radio\n".
"$strength_pelvis_comments\n".
"$strength_pelvis_recommendations\n".
"upper legs front: $strength_upper_legs_front_radio\n".
"$strength_upper_legs_front_comments\n".
"$strength_upper_legs_front_recommendations\n".
"upper legs back: $strength_upper_legs_back_radio\n".
"$strength_upper_legs_back_comments\n".
"$strength_upper_legs_back_recommendations\n".
"lower legs: $strength_lower_legs_radio\n".
"$strength_lower_legs_comments\n".
"$strength_lower_legs_recommendations\n".
"ankles: $strength_ankles_radio\n".
"$strength_ankles_comments\n".
"$strength_ankles_recommendations\n".
"balance \n".
"hands: $balance_hands_radio\n".
"$balance_hands_comments\n".
"$balance_hands_recommendations\n".
"legs: $balance_legs_radio\n".
"$balance_legs_comments\n".
"$balance_legs_recommendations\n".
"elbows: $balance_elbows_radio\n".
"$balance_elbows_comments\n".
"$balance_elbows_recommendations\n".
"knees: $balance_knees_radio\n".
"$balance_knees_comments\n".
"$balance_knees_recommendations\n".
"floor: $balance_floor_radio\n".
"$balance_floor_comments\n".
"$balance_floor_recommendations\n".
"combined: $balance_combined_radio\n".
"$balance_combined_comment\n".
"$balance_combined_recommendations\n".
"skills\n".
"floor: $skills_floor_radio\n".
"$skills_floor_comments\n".
"$skills_floor_recommendations\n".
"flips: $skills_flips_radio\n".
"$skills_flips_comments\n".
"$skills_flips_recommendations\n".
"aerial: $skills_aerial_radio\n".
"$skills_aerial_comments\n".
"$skills_aerial_recommendations\n".
"combined: $skills_combined_radio\n".
"$skills_combined_comments\n".
"$skills_combined_recommendations\n".
"special needs \n".
"hyper elbows:$hyper_elbows_radio;\n".
"hyper knees: $hyper_knees_radio\n".
"special needs: $special_needs_comments\n".
"theory \n".
"theory: $theory_radio\n".
"$theory_comments\n".
"$theory_recommendations\n".
"general comments: $general_comments\n".
" general recommendations:$recommendations\n".
" core strength: $strength_core_radio\n".
"$strength_core_comments\n".
"$strength_core_recommendations";
$headers = "From: $from \r\n";
$headers .= "Reply-To: $email \r\n";
mail($to, $subject, $body,$headers);
header('Location: acrobatics_4_dancers_thank_you.html');
}
?>
my final page of form code is as follows:
<form
action="<?php $_SERVER['PHP_SELF']; ?>" method="post" name="assessment_form" id="assessment_form">
<input type="hidden" name="first_name" value="<?php echo $_POST['first_name']; ?>" />
<input type="hidden" name="surname" value="<?php echo $_POST['surname']; ?>" />
<input type="hidden" name="dob" value="<?php echo $_POST['dob']; ?>" />
<input type="hidden" name="email" value="<?php echo $_POST['email']; ?>" />
<input type="hidden" name="gender_radio" value="<?php echo $_POST['gender_radio']; ?>" />
<input type="hidden" name="parent_name" value="<?php echo $_POST['parent_name']; ?>" />
<input type="hidden" name="postal" value="<?php echo $_POST['postal']; ?>" />
<input type="hidden" name="short_term" value="<?php echo $_POST['short_term']; ?>" />
<input type="hidden" name="long_term" value="<?php echo $_POST['long_term']; ?>" />
<input type="hidden" name="coach" value="<?php echo $_POST['coach']; ?>" />
<input type="hidden" name="reg_number" value="<?php echo $_POST['reg_number']; ?>" />
<input type="hidden" name="flex_neck_radio" value="<?php echo $_POST['flex_neck_radio']; ?>" />
<input type="hidden" name="flex_neck_comments" value="<?php echo $_POST['flex_neck_comments']; ?>" />
<input type="hidden" name="flex_neck_recommendations" value="<?php echo $_POST['flex_neck_recommendations']; ?>" />
<input type="hidden" name="flex_shoulders_radio" value="<?php echo $_POST['flex_shoulders_radio']; ?>" />
<input type="hidden" name="flex_shoulders_comments" value="<?php echo $_POST['flex_shoulders_comments']; ?>" />
<input type="hidden" name="flex_shoulders_recommendations" value="<?php echo $_POST['flex_shoulders_recommendations']; ?>" />
<input type="hidden" name="flex_neck_radio" value="<?php echo $_POST['flex_neck_radio']; ?>" />
<input type="hidden" name="flex_neck_comments" value="<?php echo $_POST['flex_neck_comments']; ?>" />
<input type="hidden" name="flex_neck_recommendations" value="<?php echo $_POST['flex_neck_recommendations']; ?>" />
<input type="hidden" name="flex_wrists_radio" value="<?php echo $_POST['flex_wrists_radio']; ?>" />
<input type="hidden" name="flex_wrists_comments" value="<?php echo $_POST['flex_wrists_comments']; ?>" />
<input type="hidden" name="flex_wrists_recommendations" value="<?php echo $_POST['flex_wrists_recommendations']; ?>" />
<input type="hidden" name="flex_upper_arms_radio" value="<?php echo $_POST['flex_upper_arms_radio']; ?>" />
<input type="hidden" name="flex_upper_arms_comments" value="<?php echo $_POST['flex_upper_arms_comments']; ?>" />
<input type="hidden" name="flex_upper_arms_recommendations" value="<?php echo $_POST['flex_upper_arms_recommendations']; ?>" />
<input type="hidden" name="flex_upper_back_radio" value="<?php echo $_POST['flex_upper_back_radio']; ?>" />
<input type="hidden" name="flex_upper_back_comments" value="<?php echo $_POST['flex_upper_back_comments']; ?>" />
<input type="hidden" name="flex_upper_back_recommendations" value="<?php echo $_POST['flex_upper_back_recommendations']; ?>" />
<input type="hidden" name="flex_mid_back_radio" value="<?php echo $_POST['flex_mid_back_radio']; ?>" />
<input type="hidden" name="flex_mid_back_comments" value="<?php echo $_POST['flex_mid_back_comments']; ?>" />
<input type="hidden" name="flex_mid_back_recommendations" value="<?php echo $_POST['flex_mid_back_recommendations']; ?>" />
<input type="hidden" name="flex_low_back_radio" value="<?php echo $_POST['flex_low_back_radio']; ?>" />
<input type="hidden" name="flex_low_back_comments" value="<?php echo $_POST['flex_low_back_comments']; ?>" />
<input type="hidden" name="flex_low_back_recommendations" value="<?php echo $_POST['flex_low_back_recommendations']; ?>" />
<input type="hidden" name="flex_sides_radio" value="<?php echo $_POST['flex_sides_radio']; ?>" />
<input type="hidden" name="flex_sides_comments" value="<?php echo $_POST['flex_sides_comments']; ?>" />
<input type="hidden" name="flex_sides_recommendations" value="<?php echo $_POST['flex_sides_recommendations']; ?>" />
<input type="hidden" name="flex_pelvis_radio" value="<?php echo $_POST['flex_pelvis_radio']; ?>" />
<input type="hidden" name="flex_pelvis_comments" value="<?php echo $_POST['flex_pelvis_comments']; ?>" />
<input type="hidden" name="flex_pelvis_recommendations" value="<?php echo $_POST['flex_pelvis_recommendations']; ?>" />
<input type="hidden" name="flex_upper_legs_front_radio" value="<?php echo $_POST['flex_upper_legs_front_radio']; ?>" />
<input type="hidden" name="flex_upper_legs_front_comments" value="<?php echo $_POST['flex_upper_legs_front_comments']; ?>" />
<input type="hidden" name="flex_upper_legs_front_recommendations" value="<?php echo $_POST['flex_upper_legs_front_recommendations']; ?>" />
<input type="hidden" name="flex_upper_legs_back_radio" value="<?php echo $_POST['flex_upper_legs_back_radio']; ?>" />
<input type="hidden" name="flex_upper_legs_back_comments" value="<?php echo $_POST['flex_upper_legs_back_comments']; ?>" />
<input type="hidden" name="flex_upper_legs_back_recommendations" value="<?php echo $_POST['flex_upper_legs_back_recommendations']; ?>" />
<input type="hidden" name="flex_lower_legs_radio" value="<?php echo $_POST['flex_lower_legs_radio']; ?>" />
<input type="hidden" name="flex_lower_legs_comments" value="<?php echo $_POST['flex_lower_legs_comments']; ?>" />
<input type="hidden" name="flex_lower_legs_recommendations" value="<?php echo $_POST['flex_lower_legs_recommendations']; ?>" />
<input type="hidden" name="flex_ankles_radio" value="<?php echo $_POST['flex_ankles_radio']; ?>" />
<input type="hidden" name="flex_ankles_comments" value="<?php echo $_POST['flex_ankles_comments']; ?>" />
<input type="hidden" name="flex_ankles_recommendations" value="<?php echo $_POST['flex_ankles_recommendations']; ?>" />
<input type="hidden" name="strength_neck_radio" value="<?php echo $_POST['strength_neck_radio']; ?>" />
<input type="hidden" name="strength_neck_comments" value="<?php echo $_POST['strength_neck_comments']; ?>" />
<input type="hidden" name="strength_neck_recommendations" value="<?php echo $_POST['strength_neck_recommendations']; ?>" />
<input type="hidden" name="strength_shoulders_radio" value="<?php echo $_POST['strength_shoulders_radio']; ?>" />
<input type="hidden" name="strength_shoulders_comments" value="<?php echo $_POST['strength_shoulders_comments']; ?>" />
<input type="hidden" name="strength_shoulders_recommendations" value="<?php echo $_POST['strength_shoulders_recommendations']; ?>" />
<input type="hidden" name="strength_neck_radio" value="<?php echo $_POST['strength_neck_radio']; ?>" />
<input type="hidden" name="strength_neck_comments" value="<?php echo $_POST['strength_neck_comments']; ?>" />
<input type="hidden" name="strength_neck_recommendations" value="<?php echo $_POST['strength_neck_recommendations']; ?>" />
<input type="hidden" name="strength_wrists_radio" value="<?php echo $_POST['strength_wrists_radio']; ?>" />
<input type="hidden" name="strength_wrists_comments" value="<?php echo $_POST['strength_wrists_comments']; ?>" />
<input type="hidden" name="strength_wrists_recommendations" value="<?php echo $_POST['strength_wrists_recommendations']; ?>" />
<input type="hidden" name="strength_upper_arms_radio" value="<?php echo $_POST['strength_upper_arms_radio']; ?>" />
<input type="hidden" name="strength_upper_arms_comments" value="<?php echo $_POST['strength_upper_arms_comments']; ?>" />
<input type="hidden" name="strength_upper_arms_recommendations" value="<?php echo $_POST['strength_upper_arms_recommendations']; ?>" />
<input type="hidden" name="strength_upper_back_radio" value="<?php echo $_POST['strength_upper_back_radio']; ?>" />
<input type="hidden" name="strength_upper_back_comments" value="<?php echo $_POST['strength_upper_back_comments']; ?>" />
<input type="hidden" name="strength_upper_back_recommendations" value="<?php echo $_POST['strength_upper_back_recommendations']; ?>" />
<input type="hidden" name="strength_mid_back_radio" value="<?php echo $_POST['strength_mid_back_radio']; ?>" />
<input type="hidden" name="strength_mid_back_comments" value="<?php echo $_POST['strength_mid_back_comments']; ?>" />
<input type="hidden" name="strength_mid_back_recommendations" value="<?php echo $_POST['strength_mid_back_recommendations']; ?>" />
<input type="hidden" name="strength_low_back_radio" value="<?php echo $_POST['strength_low_back_radio']; ?>" />
<input type="hidden" name="strength_low_back_comments" value="<?php echo $_POST['strength_low_back_comments']; ?>" />
<input type="hidden" name="strength_low_back_recommendations" value="<?php echo $_POST['strength_low_back_recommendations']; ?>" />
<input type="hidden" name="strength_sides_radio" value="<?php echo $_POST['strength_sides_radio']; ?>" />
<input type="hidden" name="strength_sides_comments" value="<?php echo $_POST['strength_sides_comments']; ?>" />
<input type="hidden" name="strength_sides_recommendations" value="<?php echo $_POST['strength_sides_recommendations']; ?>" />
<input type="hidden" name="strength_pelvis_radio" value="<?php echo $_POST['strength_pelvis_radio']; ?>" />
<input type="hidden" name="strength_pelvis_comments" value="<?php echo $_POST['strength_pelvis_comments']; ?>" />
<input type="hidden" name="strength_pelvis_recommendations" value="<?php echo $_POST['strength_pelvis_recommendations']; ?>" />
<input type="hidden" name="strength_upper_legs_front_radio" value="<?php echo $_POST['strength_upper_legs_front_radio']; ?>" />
<input type="hidden" name="strength_upper_legs_front_comments" value="<?php echo $_POST['strength_upper_legs_front_comments']; ?>" />
<input type="hidden" name="strength_upper_legs_front_recommendations" value="<?php echo $_POST['strength_upper_legs_front_recommendations']; ?>" />
<input type="hidden" name="strength_upper_legs_back_radio" value="<?php echo $_POST['strength_upper_legs_back_radio']; ?>" />
<input type="hidden" name="strength_upper_legs_back_comments" value="<?php echo $_POST['strength_upper_legs_back_comments']; ?>" />
<input type="hidden" name="strength_upper_legs_back_recommendations" value="<?php echo $_POST['strength_upper_legs_back_recommendations']; ?>" />
<input type="hidden" name="strength_lower_legs_radio" value="<?php echo $_POST['strength_lower_legs_radio']; ?>" />
<input type="hidden" name="strength_lower_legs_comments" value="<?php echo $_POST['strength_lower_legs_comments']; ?>" />
<input type="hidden" name="strength_lower_legs_recommendations" value="<?php echo $_POST['strength_lower_legs_recommendations']; ?>" />
<input type="hidden" name="strength_ankles_radio" value="<?php echo $_POST['strength_ankles_radio']; ?>" />
<input type="hidden" name="strength_ankles_comments" value="<?php echo $_POST['strength_ankles_comments']; ?>" />
<input type="hidden" name="strength_ankles_recommendations" value="<?php echo $_POST['strength_ankles_recommendations']; ?>" />
<input type="hidden" name="balance_hands_radio" value="<?php echo $_POST['balance_hands_radio']; ?>" />
<input type="hidden" name="balance_hands_comments" value="<?php echo $_POST['balance_hands_comments']; ?>" />
<input type="hidden" name="balance_hands_recommendations" value="<?php echo $_POST['balance_hands_recommendations']; ?>" />
<input type="hidden" name="balance_legs_radio" value="<?php echo $_POST['balance_legs_radio']; ?>" />
<input type="hidden" name="balance_legs_comments" value="<?php echo $_POST['balance_legs_comments']; ?>" />
<input type="hidden" name="balance_legs_recommendations" value="<?php echo $_POST['balance_legs_recommendations']; ?>" />
<input type="hidden" name="balance_elbows_radio" value="<?php echo $_POST['balance_elbows_radio']; ?>" />
<input type="hidden" name="balance_elbows_comments" value="<?php echo $_POST['balance_elbows_comments']; ?>" />
<input type="hidden" name="balance_elbows_recommendations" value="<?php echo $_POST['balance_elbows_recommendations']; ?>" />
<input type="hidden" name="balance_floor_radio" value="<?php echo $_POST['balance_floor_radio']; ?>" />
<input type="hidden" name="balance_floor_comments" value="<?php echo $_POST['balance_floor_comments']; ?>" />
<input type="hidden" name="balance_floor_recommendations" value="<?php echo $_POST['balance_floor_recommendations']; ?>" />
<input type="hidden" name="balance_combined_radio" value="<?php echo $_POST['balance_combined_radio']; ?>" />
<input type="hidden" name="balance_combined_comments" value="<?php echo $_POST['balance_combined_comments']; ?>" />
<input type="hidden" name="balance_combined_recommendations" value="<?php echo $_POST['balance_combined_recommendations']; ?>" />
<input type="hidden" name="skills_combined_radio" value="<?php echo $_POST['skills_combined_radio']; ?>" />
<input type="hidden" name="skills_combined_comments" value="<?php echo $_POST['skills_combined_comments']; ?>" />
<input type="hidden" name="skills_combined_recommendations" value="<?php echo $_POST['skills_combined_recommendations']; ?>" />
<input type="hidden" name="skills_floor_radio" value="<?php echo $_POST['skills_floor_radio']; ?>" />
<input type="hidden" name="skills_floor_comments" value="<?php echo $_POST['skills_floor_comments']; ?>" />
<input type="hidden" name="skills_floor_recommendations" value="<?php echo $_POST['skills_floor_recommendations']; ?>" />
<input type="hidden" name="skills_flips_radio" value="<?php echo $_POST['skills_flips_radio']; ?>" />
<input type="hidden" name="skills_flips_comments" value="<?php echo $_POST['skills_flips_comments']; ?>" />
<input type="hidden" name="skills_flips_recommendations" value="<?php echo $_POST['skills_flips_recommendations']; ?>" />
<input type="hidden" name="skills_aerial_radio" value="<?php echo $_POST['skills_aerial_radio']; ?>" />
<input type="hidden" name="skills_aerial_comments" value="<?php echo $_POST['skills_aerial_comments']; ?>" />
<input type="hidden" name="skills_aerial_recommendations" value="<?php echo $_POST['skills_aerial_recommendations']; ?>" />
<input type="hidden" name="hyper_elbows_radio" value="<?php echo $_POST['hyper_elbows_radio']; ?>" />
<input type="hidden" name="hyper_knees_radio" value="<?php echo $_POST['hyper_knees_radio']; ?>" />
<input type="hidden" name="special_needs_comments" value="<?php echo $_POST['special_needs_comments']; ?>" />
<input type="hidden" name="theory_radio" value="<?php echo $_POST['theory_radio']; ?>" />
<input type="hidden" name="theory_comments" value="<?php echo $_POST['theory_comments']; ?>" />
<input type="hidden" name="theory_recommendations" value="<?php echo $_POST['theory_recommendations']; ?>" />
<input type="hidden" name="date" value="<?php echo $_POST['date']; ?>" />
<input type="hidden" name="strength_core_radio" value="<?php echo $_POST['strength_core_radio']; ?>" />
<input type="hidden" name="strength_core_comments" value="<?php echo $_POST['strength_core_comments']; ?>" />
<input type="hidden" name="strength_core_recommendations" value="<?php echo $_POST['strength_core_recommendations']; ?>" />
<input type="hidden" name="recommendations" value="<?php echo $_POST['recommendations']; ?>" />
<input type="hidden" name="general_comments" value="<?php echo $_POST['general_comments']; ?>" />
<input type="submit" value="submit" />
</form>