include("include_breadcrumb.php"); ?>
include("include_sidebar.php"); ?>
if( $confirm_coach == true ) { ?>
}
//end confirmation form
?>
Edit a Coach: Step 2 of 2
}else if( ($confirm_coach != true) || ($_POST[edit_coach] != true) ){ ?>Edit a Coach: Step 1 of 2
if (!$errmsg) { ?>To edit a coach, simply change the data you wish. If you make a mistake, just hit the reset button. To save the changes as a NEW coach (for instance, if you have multiple chapters), hit the "SAVE AS A NEW COACH" button. To save changes to the existing coach entry, hit the "SAVE CHANGES TO YOUR COACH" button. You will have a chance to review the data before confirming. You will then be prompted to confirm your information before the information is sent to us.
} else { ?>echo $errmsg; ?>
} ?> } // begin insert form if( ($_POST[edit_coach] != true) || ($errmsg) || (($confirm_coach != true) && ($_POST[insert_coach] != true)) ) { ?> } // end insert form // begin confirmation form if($confirm_coach == true){ ?>
Please confirm your information. If everything is correct, click the submit button. Otherwise, you may click the edit button to change your information before submitting.
Name
echo stripslashes($_POST[coach_name]); ?>
Street Address
echo stripslashes(htmlspecialchars($_POST[coach_address])); ?>
Street Address Two
echo stripslashes(htmlspecialchars($_POST[coach_address_two])); ?>
City
echo stripslashes(htmlspecialchars($_POST[coach_city])); ?>
State
echo stripslashes(htmlspecialchars($_POST[coach_state])); ?>
Zip/Postal Code
echo stripslashes(htmlspecialchars($_POST[coach_zip])); ?>
Phone
echo stripslashes(htmlspecialchars($_POST[coach_phone])); ?>
Fax/Alternate Phone
echo stripslashes(htmlspecialchars($_POST[coach_fax])); ?>
E-mail
echo stripslashes(htmlspecialchars($_POST[coach_email])); ?>
Website
Info
Certifications
$explosion = implode(",", $_POST[coach_certifications]);
$sql = ("SELECT * FROM ".$prefix."CoachesCertifications WHERE coach_certification_id IN ($explosion) ORDER BY coach_certification_name ASC");
//echo $sql;
$fetch = mysql_query($sql) or die(mysql_error());
$certification_list = "";
while ($list = mysql_fetch_array($fetch)) {
$certification_list = $certification_list."$list[coach_certification_name], ";
}
$certification_list = rtrim($certification_list, ', ');
echo $certification_list;
?>
Services
$explosion = implode(",", $_POST[coach_services]);
$sql = ("SELECT * FROM ".$prefix."CoachesServices WHERE coach_service_id IN ($explosion) ORDER BY coach_service_name ASC");
//echo $sql;
$fetch = mysql_query($sql) or die(mysql_error());
$service_list = "";
while ($list = mysql_fetch_array($fetch)) {
$service_list = $service_list."$list[coach_service_name], ";
}
$service_list = rtrim($service_list, ', ');
echo $service_list;
?>
Education
$explosion = implode(",", $_POST[coach_degrees]);
$sql = ("SELECT * FROM ".$prefix."CoachesDegrees WHERE coach_degree_id IN ($explosion) ORDER BY coach_degree_name ASC");
//echo $sql;
$fetch = mysql_query($sql) or die(mysql_error());
$degree_list = "";
while ($list = mysql_fetch_array($fetch)) {
$degree_list = $degree_list."$list[coach_degree_name], ";
}
$degree_list = rtrim($degree_list, ', ');
echo $degree_list;
?>
General Info
echo strip_tags(stripslashes($_POST[coach_info])) ?>
Rates & Fees
echo strip_tags(stripslashes($_POST[coach_cost])) ?>
Camps
echo strip_tags(stripslashes($_POST[coach_camps])) ?>