回 帖 发 新 帖 刷新版面

主题:关于表单项目锁定必填的问题

我用的现成的网页,在下面的输入表单中,它的各项多是必填的。
谁能帮忙把“电子邮件”改成不是必填的。
网页是山药网免费发布系统,的发布页面。
<td> </td>
 </tr>
 <tr> 
 <td width="100%" class=f14 ><strong><font color="#FF6600"> ·畜禽类信息<strong><font color="#FF6600">发布页面</font>< /strong></font></strong></td>
 </tr>
 <tr> 
 <td width="100%"> <p><font color="#FF0000"> <font color="#0000FF"> 
       注意:以下各项都必须填写</font><br>
       
 <%if request("w")=1 then response.write "请选择供求!"
 if request("w")=2 then response.write "主题不能为空!"
 if request("w")=3 then response.write "联系人不能为空!" 
 if request("w")=4 then response.write "联系电话不能为空!"
 if request("w")=7 then response.write "详细地址不能为空!" 
 if request("w")=5 then response.write "内容不能为空!" 
 if request("w")=6 then response.write "内容超过100000个字母!"%>
 </font></p>
 <form method="POST" action="addmed.asp">
 <table width="450" border="0" align="center" cellpadding="1" cellspacing="2">
 <tr>
 <td>选择分类:</td>
 <td><select size="1" name="n" style="background-color: #FFFFE6">
 <option value="1">猪肉</option>
 <option value="2">猪肚</option>
 
 </select>      选择供求: 
 <input name="gq" type="radio" value="供" checked>
 供 
 <input type="radio" name="gq" value="求">
 求</td>
 </tr>
 <tr>
 <td width="16%">主    题:</td>
 <td width="84%">
 <!--webbot
 bot="Validation" B-Value-Required="TRUE"
 I-Maximum-Length="40" -->
 <input type="text" name="t1" size="44" maxlength="40"></td>
 </tr>
 <tr>
 <td width="16%">电子邮件:</td>
 <td width="84%">
 <!--webbot
 bot="Validation" B-Value-Required="TRUE"
 I-Maximum-Length="30" -->
 <input type="text" name="t2" size="44" maxlength="30"></td>
 </tr>
 <tr>
 <td width="16%">联 系 人:</td>
 <td width="84%" height="22">
 <!--webbot
 bot="Validation" B-Value-Required="TRUE"
 I-Maximum-Length="30" -->
 <input name="t5" type="text" id="t5" size="10" maxlength="30">     联系电话:
 <label>
 <input type="text" name="e2" size="5" maxlength="6">
 </label> 
 <input type="text" name="t4" size="15" maxlength="30"></td>
 </tr>
 <tr>
 <td width="16%" valign="top">内    容:</td>
 <td width="84%" valign="middle">
 <textarea rows="6" name="t3" cols="43"></textarea></td>
 </tr>
 <tr>
 <td width="16%">所在地区:</td>
 <td width="84%">
<select name="d1" size="1">
 <option value="大同市">大同市</option>
 <option value="北京" selected>北京</option>
 <option value="上海">上海</option>
 <option value="天津">天津</option>
 
 </select>       有效期限: 
 <select size="1" name="d2">
 <option value="1">1天</option>
 <option value="2">2天</option>
 <option value="3" selected>3天</option>
 <option value="7">7天</option>
 <option value="10">10天</option>
 <option value="15">15天</option>
 <option value="30">1个月</option>
 <option value="90">1个季度</option>
 <option value="182">半年</option>
 <option value="365">1年</option>
 </select></td>
 </tr>
<tr>
 <td width="16%">详细地址:</td>
 <td width="84%">
 <!--webbot
 bot="Validation" B-Value-Required="TRUE"
 I-Maximum-Length="40" -->
 <input type="text" name="e1" size="44" maxlength="40"></td>
 </tr>
 <tr>
 <td></td>
 <td></td>
 </tr>
 <tr>
 <td width="16%" align="center"> </td>
 <td width="84%" align="center"><input type="submit" value=" 马上发布" name="B1" style="background-color: #FFFFE6; font-size: 9pt; border -style: solid; border-color: #000000"> 
       <input type="reset" value="全部重填" name="B2" style= "background-color: #FFFFE6; font-size: 9pt; border-style: solid; border-color: #000000">
      </td>
 </tr>
 </table>
 </form>
 <p></p></td>
    

回复列表 (共2个回复)

沙发

你所发的代码中就是电子邮件用不着填呀~  你还要什么啊 ~~~

板凳

谢谢问题已解决

我来回复

您尚未登录,请登录后再回复。点此登录或注册