作者alpe (这麽说来)
看板PHP
标题Re: [请益] 我的第一支php程式不能work ><
时间Mon Nov 14 18:08:40 2005
※ 引述《vodkalike (微醺.我要很努力很努力)》之铭言:
: 很简单的程式
: 就是写一个表单档名为test.php
: 然後写一个show.php接收表单输入的变数并输出
: 但就是不成功
: 有人可以帮我看一下吗?
: 小问题搞这麽久,有点小挫折><
: test.php 内容大致如下
: <form action="show.php" method="post">
: <input type="text" name="num1">
: <input type="test" name="num2">
<input type='text name='num2'>
: <input type="submit" value="show result">
: </form>
: show.php内容大致如下
: <?
$num3= $_POST['num1']+$_POST['num2'] ;
: $num3=$num1+$num2;
如果想这样写的话要打开 regsister_global
: echo ($num1."+".$num2."=".$num3);
: ?>
--
Live Long and Prosper
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 203.67.13.189
1F:推 johnney:而 regsister_global 请参考上一篇(真刚好) 11/14 18:56
2F:推 andreli:我也觉得很刚好 = =||| 11/14 19:06
3F:→ appleboy46:哈哈 真是刚好 11/14 22:03