大家好,我有一个联系表格,验证码就在那里.我希望在提交表格后检查支票.我发布了文本框值并且显示正确,但复选框无效.这是我的代码.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org /TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <Meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form action = "" name="frmSubmit" method="post"> <input type="checkBox" name="txtCheck" value="<?PHP echo $_POST['txtCheck'];?>" /><br /> <label>Name</label><br /> <input type="text" name="txtName" id="NameTextBox" value="<?PHP echo $_POST['txtName']; ?>" /> <br /> <label>E Mail</label><br /> <input type="text" name="txtEmail" id="EmailTextBox" value="<?PHP echo $_POST['txtEmail'];?>" /> <input name="BtnSubmit" type="submit" onclick="MM_validateForm('NameTextBox','','R','EmailTextBox','R');return document.MM_returnValue" value="Send" /> </form> </body> </html>
提交表格后如何保留复选框.?