POST的问题 [英] problems with POST

查看:56
本文介绍了POST的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




下面的脚本*使用*来工作。我刚刚在我的Win98系统上再次设置了一个

服务器,PHP等,现在它不是吗?


首次加载此页面时,你会有
$ p =


和它下面的按钮图片。

点击按钮相同的页面会重新加载但是传递隐藏的值

(r = w& p = f)

这样页面的第一行就会有


$ p = f


这不再有效???


<?php

echo"< html>< body>" ;;

echo" \ $ p = $ p< br>< br>" ;; // ###

$ str =<<< HTM

< head>

< / head>

< body>

< form action ="" method =" post">

< input type =" hidden"命名= QUOT; R" value =" w">

< input type =" hidden"名称= QUOT; P" value =" f">

< input type =" image" SRC =" HTTP://home/images/faq-up.gif" border =" 0"

height =" 22" width =" 77">

< / form>

< / body>

< / html>

HTM;

echo $ str;

?>

打印$ _ENV变量以及上述脚本我发现

如下:


QUERY_METHOD POST

REQUEST_METHOD POST

FORM_P f

FORM_R w


我的

PHP设置中是否还有一些功能可以阻止它现在停止工作?


或者用PHP改变了一些东西,所以我必须采取另一种方式吗?


非常感谢


mori

Hi,

The script below *used* to work. I have only just set up a
server, PHP etc again on my Win98 system and now it doesn''t?

On first loading this page, you would have

$p =

and the button image below it.
On clicking the button the same page would reload but pass the hidden values
(r=w & p=f)
so that the first line of the page would then have

$p = f

This no longer works???

<?php
echo "<html><body>";
echo "\$p = $p<br><br>"; //###
$str = <<<HTM
<head>
</head>
<body>
<form action="" method="post">
<input type="hidden" name="r" value="w">
<input type="hidden" name="p" value="f">
<input type="image" src="http://home/images/faq-up.gif" border="0"
height="22" width="77">
</form>
</body>
</html>
HTM;
echo $str;
?>
on printing the $_ENV variables along with the the above script I find the
following :

QUERY_METHOD POST
REQUEST_METHOD POST
FORM_P f
FORM_R w

Is there something I haven''t enabled in my
setup of PHP that is stopping this from working now?

Or has something changed with PHP, so that I have to do this another way?

many thanks

mori

推荐答案

p =


及其下面的按钮图片。

单击按钮时,同一页面会重新加载,但会传递隐藏的值

(r = w& p = f)

so然后页面的第一行会有

p =

and the button image below it.
On clicking the button the same page would reload but pass the hidden values
(r=w & p=f)
so that the first line of the page would then have


p = f


这不再有效???


<?php

echo"< html>< body>";

echo" \
p = f

This no longer works???

<?php
echo "<html><body>";
echo "\


p =


这篇关于POST的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆