<input type="radio" name="work" value="4 years to less than 6 years" />4 years to less than 6 years</br> <input type="radio" name="work" value="6 years or more" />6 years or more</br> </div> <div class="button"> <input type="submit" name="fourthPageSubmit" value="Submit"/> </div> </form> <?php } else { //echo '</br>saving fourth page</br>'; //echo 'lastId: '.$_POST['lastId']; $sex = $_POST['sex']; $age = $_POST['age']; $work = $_POST['work']; $vote->saveForthPage($sex, $age, $work, $_POST['lastId']); ?> <div class="note"> <h3>Thank you for your time !</h3> </div> <?php } ?> </div> </div> <div id="footer"></div> </div> </body>