提交相当于 WML 的表单

发布于 2024-08-31 01:27:43 字数 317 浏览 5 评论 0原文

我正在用 PHP 玩一下 WML,然后我想知道 WML 1.0 上的等效项是什么:

<form action="upload_file.php" method="post">
<label for="file">File:</label><br />
<input type="file" name="file" id="file" /><br />
<input type="submit" name="submit" value="Submit" />
</form>

I'm playing a little bit with WML with PHP, then I want to know what is the equivalent of this on WML 1.0:

<form action="upload_file.php" method="post">
<label for="file">File:</label><br />
<input type="file" name="file" id="file" /><br />
<input type="submit" name="submit" value="Submit" />
</form>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

起风了 2024-09-07 01:27:43

WML 1.0 大约 10 年前已被弃用,但我将通过查看 www.wapforum.org/what/technical/wml-30-apr-98.pdf

但请注意,并非所有设备都支持“文件”输入类型,所以这实际上起作用的机会很小。

<WML>
<CARD>
<DO TYPE="ACCEPT">
<GO URL="/upload_file.php" />
</DO>
<FIELDSET TITLE="File">
File: <INPUT TYPE="FILE" KEY="myfile"/>
</FIELDSET>
</CARD>
</WML>

WML 1.0 is deprecated about 10 years ago, but I will answer this by looking at the spec for wml1.0 from www.wapforum.org/what/technical/wml-30-apr-98.pdf

But do note that the "file" input type isn't supported by all devices, so the chances of this actually working is quite slim.

<WML>
<CARD>
<DO TYPE="ACCEPT">
<GO URL="/upload_file.php" />
</DO>
<FIELDSET TITLE="File">
File: <INPUT TYPE="FILE" KEY="myfile"/>
</FIELDSET>
</CARD>
</WML>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文