表单出现问题 怎么给服务器上传数据 还望大神指导一下!

<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<html>
           <head>
                    <title>7楼实习生</title>
                    <meta http-equiv="contest-typer" content="text/html:charset="GB18030">
            </head>
            <body>
                    <table border="1" width="470" bgcolor="#1685a9" align="center">
                    <form name="form" action="http://" method="post" target="_blank" title="" enctype="multipart/form-data">                        
            <tr>
                    <th width="65"><font color="white">名字</font> </th>
                    <td width="390">
                    <input type="text" name=""  size="20" maxlength="10"  value="">
            </td>
            </tr>
                        
             <tr>
                     <th><font color="white">日期</font></th>
             <td>
                     <input type="text" name=""  size="20" maxlength="10"  value="">
             </td>
             </tr>
             <tr>
                     <th><font color="white">想法</font></th>
             <td>
                     <input type="text" name=""  size="20" maxlength="10"  value="">
             </tr>
             <tr>
                     <td colspan="2" align="center" > 
                     <input type="submit" name="sub"  value="确定">
                     <input type="reset"  name=""value="修改" >
                     <input type="button" name="" value="删除">
             </td>
             </tr>
             </form>
            </table>
          </body>
</html>


_HatsuneMiku_
浏览 1104回答 1
1回答

李晓健

form 的action属性是完整的提交地址所有的输入框,只要是需要提交给后台的input都需要有name属性最后的三个按钮不需要name属性
打开App,查看更多内容
随时随地看视频慕课网APP