如何把这段代码用PHP语言与数据库连接!
<formname="form1"><tablewidth="100%"border="0"cellpadding="0"cellspacing="0"bgcolor="...
<form name="form1">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<td>企业会员注册(带*号的为必填项)</td>
<td align="right"></td>
<tr>
<td width="25%" height="30" align="right">公司名称:</td>
<td width="75%" class="category">
<input type=text style="widtg:100px" name="rname" onBlur="return checkrname():"><font color="#ff0000">*</font><span id="rname1"></span></td>
</tr>
<tr>
<td align="right" height="30">用户密码:</td>
<td class="category"><input type=password style="width:250px" name="password" onBlur="checkpass():" maxlength=20><font color="#ff0000">*</font><span id="password2"></span></td>
</tr>
<tr>
<td align="right" height="30">重复密码:</td>
<td class="category"><input type=password style="width:250px" name="password1" onBlur="checkpass():" maxlength=20><font color="#ff0000">*</font><span id="password3"></span></td>
</tr>
<tr>
<td heigth="30" align="right">联系人:</td>
<td class="category"><input type="text" name="contact" style="width:250px"><font color="#ff0000">*</font></td>
</tr>
<tr>
<td align="right" height="30">性别:</td>
<td class="category">
<input type="radio" name="sex" value="1" checked="checked">
女
<input type="radio" name="sex" value="0">
男
</td>
</tr>
<tr>
<td align="right" height="30">联系电话:</td>
<td class="category"><input type="text" name="qq" style="width:250px" onKeyUp="this.value=this.value.replace(/\D/g.)"></td>
</tr>
<tr>
<td align="right" height="30">MSN: </td>
<td class="category"><input type="text" name="MSN" style="width:250px"></td>
</tr>
<tr>
<td>
<td align="right" height="30">Email: </td>
<td class="category"><input type="text" name="email" style="width:250px"></td>
</tr>
<tr>
<td algin="right" height="30">网址:</td>
<td class="category"><input type="text" name="web" style="width:250px"></td>
</tr>
<tr>
<td height="30">
<td class="category">
<input type="submit" value="确认提交" onClick="return check()" class="button">
<input type="hidden" name="hid1" value="ok">
<input type="reset" value="重新填写" calss="button">
</td>
</tr>
</table>
</form> 展开
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<td>企业会员注册(带*号的为必填项)</td>
<td align="right"></td>
<tr>
<td width="25%" height="30" align="right">公司名称:</td>
<td width="75%" class="category">
<input type=text style="widtg:100px" name="rname" onBlur="return checkrname():"><font color="#ff0000">*</font><span id="rname1"></span></td>
</tr>
<tr>
<td align="right" height="30">用户密码:</td>
<td class="category"><input type=password style="width:250px" name="password" onBlur="checkpass():" maxlength=20><font color="#ff0000">*</font><span id="password2"></span></td>
</tr>
<tr>
<td align="right" height="30">重复密码:</td>
<td class="category"><input type=password style="width:250px" name="password1" onBlur="checkpass():" maxlength=20><font color="#ff0000">*</font><span id="password3"></span></td>
</tr>
<tr>
<td heigth="30" align="right">联系人:</td>
<td class="category"><input type="text" name="contact" style="width:250px"><font color="#ff0000">*</font></td>
</tr>
<tr>
<td align="right" height="30">性别:</td>
<td class="category">
<input type="radio" name="sex" value="1" checked="checked">
女
<input type="radio" name="sex" value="0">
男
</td>
</tr>
<tr>
<td align="right" height="30">联系电话:</td>
<td class="category"><input type="text" name="qq" style="width:250px" onKeyUp="this.value=this.value.replace(/\D/g.)"></td>
</tr>
<tr>
<td align="right" height="30">MSN: </td>
<td class="category"><input type="text" name="MSN" style="width:250px"></td>
</tr>
<tr>
<td>
<td align="right" height="30">Email: </td>
<td class="category"><input type="text" name="email" style="width:250px"></td>
</tr>
<tr>
<td algin="right" height="30">网址:</td>
<td class="category"><input type="text" name="web" style="width:250px"></td>
</tr>
<tr>
<td height="30">
<td class="category">
<input type="submit" value="确认提交" onClick="return check()" class="button">
<input type="hidden" name="hid1" value="ok">
<input type="reset" value="重新填写" calss="button">
</td>
</tr>
</table>
</form> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询