function formv(frm){
alert(frm.username.value);
document.myform.submit();
}
<form action="http://localhost/CI/index.php/scontr/logs" method="post" name="myform">
<fieldset>
<table>
<tr>
<td>UserID:</td>
<td><input type="text" name="username" maxlength="30" value="" /></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="password" maxlength="30" value="" /></td>
</tr>
<tr><td>
<select name="myselect">
<option value="one" >Teacher</option>
<option value="two" >Student</option>
</select></td>
</tr>
<tr>
<td colspan="2"><input type="button" name="submit" onclick="formv(this.form)" value="Login" /></td>
</tr>
谁能告诉我为什么上面的表格没有张贴在以下地址。显示警告框,但随后什么也没有发生。它仍然在同一页面中