onelaugh
新手上路

UID 119764
精华
0
积分 6
帖子 4
金钱 6 喜悦币
威望 0
人脉 0
阅读权限 10
注册 2008-4-23
状态 离线
|
[广告]: q
m
如何将htm文件中的输入数据传送倒php程序中?
小弟初学php,现有一小程序,欲将输入数据从htm文件传送倒php程序中,程序如下:
send.htm:
<html>
<head>
<title> send </title>
</head>
<body>
<form name="send" method=get action="receive.php">
<input type="text" name="in">
<input type=submit>
</form>
</body>
</html>
receive.php
<html>
<head>
<title> receive </title>
</head>
<body>
<?php
echo "$in";
?>
</body>
</html>
就是在一个form表单的输入框中输入一个数,用php将它显示出来,将输入数据从html文件中传送倒php程序中,这段代码哪里有问题,为何得不到正确结果?这可是我根据教材编得啊!恳请各位高人不吝赐教、指点迷津!
|
|