我正在尝试在这里获取标签值:
<form action="doinsert.php" method="post" enctype="multipart/form-data">
<input name="buttonExecute" onClick="execute(document.getElementById('id_student').value)" type="button" value="CHECK AVAILBLITY" />
<label name="lab" id="idhere" ></label></p>
<input type="hidden" name="val" value="<?php echo $_POST['lab']; ?>" />
<input type="submit" name="submit" value="Insert Data"/>
在 doinsert.php 中
$getlabel=$_POST['val'];
echo $getlabel;
什么都没有打印,有什么帮助吗?