网络营销电子商务研究中心

网络营销电子商务研究中心 (https://www.0058.net/index.php)
-   PHP (https://www.0058.net/forumdisplay.php?f=75)
-   -   $_post用法一例 (https://www.0058.net/showthread.php?t=4911)

Navarre 2014-12-26 07:49 PM

$_post用法一例
 
Code:


<?php
print_r($_POST);
?>

<form actiion="demo.php" method="post">
        username: <input type="text" name="uname"><br>
        password: <input type="password" name="pass"><br>
        <input type="submit" value="login">
</form>

Code:

<?php
//print_r($_POST);
foreach($_POST as $key=>$val){
echo $key."==>".$val."<br>";
}
?>

<form actiion="demo.php" method="post">
        username: <input type="text" name="username"><br>
        password: <input type="password" name="password"><br>
        <input type="submit" value="login">
</form>



All times are GMT +8. The time now is 04:51 AM.

Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.