確認ボックスに試験の名前を含めたいのですが、現時点では試験の名前が表示されていません。誰かが理由を知っていますか?試験の名前は、投稿する必要のあるテキスト入力に由来します。
以下は、試験名のテキスト入力を含むフォームです。
<?php
$newassessment = (isset($_POST['Assessmentnew'])) ? $_POST['Assessmentnew'] : '';
$editsession = "<form action=".htmlentities($_SERVER['PHP_SELF'])." method='post' id='updateForm'>
<table>
<tr>
<th>Assessment:</th>
<td><input type='text' id='newAssessment' name='Assessmentnew' readonly='readonly' value='' /> </td>
</tr>
</table>
<p><input id='updateSubmit' type='submit' value='Update Date/Start Time' name='updateSubmit' onClick='myClickHandler(); return false;'/></p>
</form>
";
echo $editsession;
}
?>
以下は確認ボックスです。
<script type="text/javascript">
function showConfirm(){
var confirmMsg=confirm("Are you sure you want to update the following:" + "\n" + "Exam: " <?php echo $newassessment ?> );
if (confirmMsg==true)
{
submitform();
}
}
</script>