message.php
<?PHP
$name = $_GET['name'];
echo ' hello ' . $name . ' . ';
?>
在浏览器中输入url 例如:http://localhost/message.php
?name=zxl 就可以将name赋值
input.php
<html>
<body>
<form action="message.php" method="get" >
<b>enter your name:</b> <input type="text" name="name" >
<input type="submit">
</form>
</body>
</html>
input.php 将表单提交给message.php 进行处理