</div> <?php require_once dirname(__FILE__) . '\\..\\util.php'; require_controller('answers\\answerquerycontroller'); use Qnet\Controller\AnswerQueryController; $controller = new AnswerQueryController(); ?> <div id="page"> <div id="content"> <div class="post"> <?php echo '<h2 class="title">' . $controller->getQueryName() . '</h2>'; if ($_GET['commit'] == 'ok') { echo '<p>Your answer has been registered. <a href="viewprofile.php?uid=' . $controller->getOwnerUid() . '">Go to results!</a><p>'; } ?> <div class="entry"> <form action="bridge.php?target=answers/answercommitcontroller" method="POST"> <input type="hidden" name="qid" value=<?php echo $_GET['qid']; ?> id="uid"> <?php while ($controller->hasMoreQuestions()) { $controller->nextQuestion(); echo '<div> <label class="mylabelstyle" for="question' . $controller->getQuestionId() . '">' . $controller->getQuestionName() . '</label> <select name="question' . $controller->getQuestionId() . '" id="question' . $controller->getQuestionId() . '">'; while ($controller->hasMoreOptions()) {