Home > php教程 > php手册 > 当我试着使用<inputtype=image>标记时,但$foo

当我试着使用<inputtype=image>标记时,但$foo

WBOY
Release: 2016-06-13 09:54:14
Original
1514 people have browsed it

当送出一个表单时,它可能使用image当成提交按钮,如下面所示:
<input type="image" SRC="image.gif" NAME="foo"> 当用户按下图片的任一点时,伴随表单传回服务器还包含了二个附加变量 foo.x 与 foo.y。
因为foo.x 与 foo.y在PHP中是有问题的名称,它们自动转成变量 $foo_x 与 $foo_y。在PHP处理期间就被转换掉了。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template