代码之家  ›  专栏  ›  技术社区  ›  Pete

PHP-公式不想用图像发布

  •  0
  • Pete  · 技术社区  · 16 年前

    你知道吗!

    我的公式如下:

    <form method="post" action="index.php?sida=upl" enctype="multipart/form-data" name="myform">
    
            <input type="file" name="picture" id="picture" class="file_1" />
            <input type="image" name="submit" style="margin-left: 120px;" src="uplbutt.png" />
    
    </form>
    

    公式的PHP代码如下:

    if (array_key_exists('image', $_POST)) 
    {
    // do something here bla bla
    }
    

    2 回复  |  直到 16 年前
        1
  •  1
  •   Greg    16 年前

    图像输入以(x,y)坐标发送,如[name].x和[name].y。

    if (array_key_exists('image_x', $_POST)) 
    
        2
  •  0
  •   Pascal MARTIN    16 年前

    钥匙在 $_POST 超全球将不会是“ type 表单输入的属性,但它是 name “属性——或基于其名称的内容,具体取决于输入的类型 image_x image_y .


    var_dump($_POST); 
    

    推荐文章