<title>无标题文档</title> </head>" />

html传值给php的简单demo

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
 
<body>
<form action="" method="get">
Name: <input type="text" name="name" />
<input type="submit" />
</form>
<?php
$name=$_GET['name'];
echo "欢迎你:".$name;
?>
</body>
</html>
分享

34.204.191.31