你试试看这个? 我是可以得
所在版块:社会百科 发贴时间:2003-02-12 23:44  评分:

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
<form action=http://www-cgi.comp.nus.edu.sg:8000/~wushilin/test.php method=post>
<input type=text name=name value="asdfasdf">
<input type=submit value="send by post">
</form>

<form action=http://www-cgi.comp.nus.edu.sg:8000/~wushilin/test.php method=get>
<input type=text name=name value="asdfasdf">
<input type=submit value="send by get">
</form>


php script:

<?
if($REQUEST_METHOD=="POST")
foreach($_POST as $key=>$value)
{
echo "(POST)You got $key with value $value<br>";
}

else
{
foreach($_GET as $key=>$value)
{
echo "(GET)You got $key with value $value<br>";
}
}

?>

你自己看看有什么问题
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

 相关帖子 我要回复↙ ↗回到正文
how come POST method is not allowed on sunfire? bigfox   (721 bytes , 426reads )
你试试看这个? 我是可以得 为什么爬?   (742 bytes , 308reads )
method="get" 百及子   (55 bytes , 200reads )
正因为post不行,所以我改为get,可是post为什么不行呢 bigfox   (0 bytes , 223reads )