how come POST method is not allowed on sunfire?how come POST method is not allowed on http://www-cgi.comp.nus.edu.sg:8000 ?
Please log in
Name:
Password:
Thank you for ur kind help! (more...)
你试试看这个? 我是可以得
<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>";
}
}
?>
你自己看看有什么问题
<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>";
}
}
?>
你自己看看有什么问题