Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在html表单标签的浏览按钮中过滤xls、xlsx和csv扩展文件?_Html - Fatal编程技术网

如何在html表单标签的浏览按钮中过滤xls、xlsx和csv扩展文件?

如何在html表单标签的浏览按钮中过滤xls、xlsx和csv扩展文件?,html,Html,如何在浏览时过滤excel、csv文件 <form action="http://www.cs.tut.fi/cgi-bin/run/~jkorpela/echo.cgi" enctype="multipart/form-data" method="post"> <p> `enter code here`Type some text (if you like):<br> <input type="text" name="textline" size="3

如何在浏览时过滤excel、csv文件

<form action="http://www.cs.tut.fi/cgi-bin/run/~jkorpela/echo.cgi"
enctype="multipart/form-data" method="post">
<p>
`enter code here`Type some text (if you like):<br>
<input type="text" name="textline" size="30">
</p>
<p>
Please specify a file, or a set of files:<br>
<input type="file" name="datafile" size="40">
</p>
<div>
<input type="submit" value="Send">
</div>
</form>


`在此处输入代码`键入一些文本(如果愿意):

请指定一个文件或一组文件:

将属性“accept”与.xls、.xlsx、.csv一起使用。我猜。

可能是重复的