Пример #1
0
<?php 
if (isset($_POST['submitParQ'])) {
    if ($user) {
        $_POST['userID'] = $user->id;
        print_r($_POST);
        $parQvalidator = new FormsModel($_POST);
        $parQreturn = $parQvalidator->validateParQ();
        print_r($parQreturn);
    }
}
?>

<div class="background">
<form method="post" id="parQform">
	<h1><strong>Par-Q Form</strong></h1>
	<div>
		<h2>The Physical Activity Readiness Questionnaire for Everyone</h2>
		<p>Regular physical activity is fun and healthy, and more people should become more physically active every day of the week.
Being more physically active is very safe for MOST people. This questionnaire will tell you whether it is necessary for you to
seek further advice from your doctor OR a qualified exercise professional before becoming more physically active.</p>
		<div id="parQmessage" class="success" style="display:none"></div>
		<div id="section1">
			
			<fieldset>
				<legend>SECTION 1 - GENERAL HEALTH</legend>
				<p>Please read the 7 questions below carefully and answer each one honestly: check YES or NO.</p>
				<div id="s1RadioGroup">
                    <div>
                        <label for="q1_1"><p>1: Has your doctor ever said that you have a heart condition OR high blood pressure?</p></label>
                        <div><input type="radio" class="s1Radios" name="q1_1" <?php