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 ?
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="get" action="loginexe.php">
<p><font face="Arial, Helvetica, sans-serif">Please log in</font></p>
<p><font face="Arial, Helvetica, sans-serif">Name:</font>
<input type="text" name="name">
<br>
<font face="Arial, Helvetica, sans-serif">Password:</font>
<input type="text" name="pw">
</p>
<p>
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Reset" value="Reset">
</p>
</form>
</body>
</html>
Thank you for ur kind help![bigfox (2-12 22:25, Long long ago)]
[ 传统版 |
sForum ][登录后回复]1楼
method="get"<form name="form1" method="get" action="loginexe.php">
[百及子 (2-12 22:42, Long long ago)]
[ 传统版 |
sForum ][登录后回复]2楼
(引用 百及子:method="get" ...)正因为post不行,所以我改为get,可是post为什么不行呢[bigfox (2-12 22:57, Long long ago)] [ 传统版 | sForum ][登录后回复]3楼
你试试看这个? 我是可以得<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>";
}
}
?>
你自己看看有什么问题[为什么爬? (2-12 23:44, Long long ago)]
[ 传统版 |
sForum ][登录后回复]4楼