亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

PHP ???? ?? ?? ??

PHP ?? ? ??? ??

PHP? $_GET ? $_POST ??? ??? ??? ?? ??? ??? ???? ? ?????.

PHP ?? ??

? ?? ?? ??? ?? HTML ??? ??? ? PHP? ???? HTML ???? ?? ??? PHP ?????? ??? ? ??? ?? ? ??? ????.

?

?? ??? ? ?? ?? ??? ??? ?? ??? ?? HTML ??? ???? ????.

form.html ?? ??? ??? ????.

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>php中文網(wǎng)(php.cn)</title>
</head>
<body>
    <form method="post" action="welcome.php">
	姓名:<input type="text" name="name"></br></br>
	年齡:<input type="text" name="age"></br></br>
	<input type="submit" value="提交">
    </form>
</body>
</html>

???? ?? ??? ???? ?? ??? ???? 'welcome.html'??? ??? PHP ??? ?? ???? ?????. php" :

welcome.php ??? ??? ????:

<?php    
	header("Content-type: text/html; charset=utf-8");
    //本文件名是welcome.php  
    $name=$_POST['name'];
    $age = $_POST['age'];
      
    echo "歡迎".$name."!</br>";    
    echo "您的年齡是:".$age."歲!";    
    //本段代碼是結(jié)合上段代碼一起使用的,建議在本地新建倆個文件,form.html  提交到 welcome.php    
?>

?

???? ??
||
<html> <head> <meta charset="utf-8"> <title>php中文網(wǎng)(php.cn)</title> </head> <body> <form action="welcome.php" method="post"> 名字: <input type="text" name="fname"></br></br> 年齡: <input type="text" name="age"></br></br> <input type="submit" value="提交"> </form> </body> </html>