日期:2010-02-25  浏览次数:21004 次

发送数据的表单实例:
……
<form name="newinfo" method="POST" action="add.asp"
enctype="multipart/form-data" onSubmit="return check()">
  <center>
  <table border="1" cellpadding="3" cellspacing="0" style="border-collapse:
collapse" bordercolor="#111111" width="500">
    <tr>
      <td width="94" align="right" bgcolor="#003399"><font color="#FFFF00">
中文品名</font></td>
      <td width="391" bgcolor="#D4D4D4">
        <p><input type="text" name="pname" size="20"></p>

      </td>
    </tr>
    <tr>
      <td width="94" align="right" bgcolor="#003399"><font color="#FFFF00">
英文品名</font></td>
      <td width="391" bgcolor="#D4D4D4">
        <input type="text" name="pname1" size="20"></td>
    </tr>
    <tr>
      <td width="94" align="right" bgcolor="#003399"><font color="#FFFF00">
类别</font></td>
      <td width="391" bgcolor="#D4D4D4"><select size="1" name="ptype">
      <option selected value="1">T/C棉布</option>
      <option value="2">水溶类</option>
      <option value="3">网布类</option>
      <option value="4">亮光类</option>
      <option value="5">婚纱类</option>
      </select></td>
    </tr>
    <tr>
      <td width="94" align="right" bgcolor="#003399"><font color="#FFFF00">
御览图片</font></td>
      <td width="391" bgcolor="#D4D4D4">
      <input type="file" name="img1" size="39"></td>
    </tr>
    <tr>
      <td width="94" align="right" bgcolor="#003399"><font color="#FFFF00">
全尺寸图片</font></td>
      <td width="391" bgcolor="#D4D4D4">
      <input type="file" name="img2" size="39"></td>
    </tr>
    <tr>
      <td width="94" align="right" bgcolor="#003399"> </td>
      <td width="391" bgcolor="#D4D4D4"> <input type="submit" value="提
交" name="B1">  
      <input type="reset" value="重置" name="