代码如下 | 复制代码 |
<form id="myform" name="myform" onsubmit="return check()" action="reg.jsp?action=adds" method="post"> <table class="k1" style="MARGIN-TOP: 10px; MARGIN-BOTTOM: 15px" cellspacing="0" cellpadding="8" width="570" align="center" border="0"> <tbody> <tr> <td class="f14black" align="right" width="92" bgcolor="#f0f8ff" height="20"><table cellspacing="0" cellpadding="0" width="100%" border="0"> <tbody> <tr> <td align="right">用户名:</td> </tr> </tbody> </table></td> <td align="left" width="180" height="28"><input class="k1" id="username" name="username" /> </td> <td class="f12blue" align="left" width="248" bgcolor="#fafafa"><span class="postError" id="usError">请正确填写,一经提交就不能更改 </span></td> </tr> <tr> <td class="k_hui_t" align="right" bgcolor="#f0f8ff" height="28"><table cellspacing="0" cellpadding="0" width="100%" border="0"> <tbody> <tr> <td class="f14black" align="right">密码:</td> </tr> </tbody> </table></td> <td class="k_hui_t" align="left"><input class="k1" type="password" name="password" /></td> <td class="f12blue" align="left" bgcolor="#fafafa"><span class="postError" id="psError"> </span></td> </tr> <tr> <td class="k_hui_t" align="right" bgcolor="#f0f8ff" height="28"><table cellspacing="0" cellpadding="0" width="100%" border="0"> <tbody> <tr> <td class="f14black" align="right">确认密码:</td> </tr> </tbody> </table></td> <td class="k_hui_t" align="left"><input class="k1" type="password" name="password2" /></td> <td class="f12blue" align="left" bgcolor="#fafafa"><span class="postError" id="ps2Error"> </span></td> </tr> <tr> <td class="k_hui_t" align="right" bgcolor="#f0f8ff" height="28"><table cellspacing="0" cellpadding="0" width="100%" border="0"> <tbody> <tr> <td class="f14black" align="right">单位名称:</td> </tr> </tbody> </table></td> <td class="k_hui_t" align="left"><input class="k1" name="company" /></td> <td class="f12blue" align="left" bgcolor="#fafafa"><span class="postError" id="comError"> </span></td> </tr> <tr> <td class="k_hui_t" align="right" bgcolor="#f0f8ff" height="28"><table cellspacing="0" cellpadding="0" width="100%" border="0"> <tbody> <tr> <td class="f14black" align="right">联系人:</td> </tr> </tbody> </table></td> <td class="k_hui_t" align="left"><input class="k1" name="conname" /> </td> <td class="f12blue" align="left" bgcolor="#fafafa"><span class="postError" id="connameError"> </span></td> </tr> <tr> <tr> |
jsp代码
代码如下 | 复制代码 |
<% String url ="jdbc:mysql://localhost/zkh131_db?user=zkh131&password=n3a9q2e3&useUnicode=true&characterEncoding=gb2312"; if (request.getParameter("submit")!=null){ |