国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

PHP page, after clicking submit, the page pointed to by the action cannot be opened. What's going on?
SkyRabbit
SkyRabbit 2018-06-13 17:07:09
0
2
1208
環(huán)境:PHPStorm 2018.1+Wampserver 3.1
打開(kāi)單個(gè)頁(yè)面沒(méi)問(wèn)題,但點(diǎn)擊提交按鈕后,顯示“無(wú)法找到該網(wǎng)頁(yè)”。
而在無(wú)法找到網(wǎng)頁(yè)的窗口直接刷新網(wǎng)頁(yè),又可以訪問(wèn)。

index.php:
<form action="./check.php" method="post">
用戶登錄
<br>
用戶名:<input type="text" name="uname"><br>
密碼:<input type="password" name="upwd"><br>
<input type="submit" value="提交">
<input type="reset" value="重置">
</form>

check.php:
<?php
if(isset($_POST)){
    if($_POST['uname'] == 'admin' && $_POST['upwd'] == 'admin'){
        echo"用戶登錄成功";
    }else{
        echo"用戶登錄失敗";
    }
}
?>


SkyRabbit
SkyRabbit

reply all(1)
無(wú)忌哥哥

It seems that there is something wrong with the address submitted by the action. Try changing it to the same level directory.

  • reply It is in the same level directory, and the situation is the same whether there is "./" in front of it or not.
    SkyRabbit author 2018-06-14 12:01:51
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template