很简单的代码
<html>
<head>
<title>Create new account</title>
</head>
<body>
<form action='TestForms.php' method='post'>
<table>
<tr>
<td width='150'>Full Name</td>
<td><input type='text' name='fullName' size='30'/></td>
</tr>
<tr>
<td width='150'> User Name</td>
<td><input type='text' name='userName' size='30'/></td>
</tr>
<tr>
<td colspan="2">
<input type='submit' value='submit'/>
</tr>
</table>
</form>
</body>
</html>TestForms.php
<html>
<head>
<title>Create new account</title>
</head>
<body>
<?php $FullName=$_POST['fullName'];
$UserName=$_POST['userName'];
?>
<p>
Full Name:<b><?php echo $FullName;?></b>
User Name:<b><?php echo $UserName;?></b>
</p>
</body>
</html>
结果是POST取不到值,是空!!!!!是不是配置文件有问题。。求高手指教
<html>
<head>
<title>Create new account</title>
</head>
<body>
<form action='TestForms.php' method='post'>
<table>
<tr>
<td width='150'>Full Name</td>
<td><input type='text' name='fullName' size='30'/></td>
</tr>
<tr>
<td width='150'> User Name</td>
<td><input type='text' name='userName' size='30'/></td>
</tr>
<tr>
<td colspan="2">
<input type='submit' value='submit'/>
</tr>
</table>
</form>
</body>
</html>TestForms.php
<html>
<head>
<title>Create new account</title>
</head>
<body>
<?php $FullName=$_POST['fullName'];
$UserName=$_POST['userName'];
?>
<p>
Full Name:<b><?php echo $FullName;?></b>
User Name:<b><?php echo $UserName;?></b>
</p>
</body>
</html>
结果是POST取不到值,是空!!!!!是不是配置文件有问题。。求高手指教
解决方案 »
- 这样的嵌套查询,为什么查不到数据
- PHP 处理2维数组的问题
- 想问一下大家,我在自己的网站上怎么实现让消费者在本站选择商品后点提交按钮时再到陶宝上交费?
- 谁有phped的使用教程
- cookie值的问题
- parse error, unexpected T_VARIABLE, expecting '('是什么错误?????
- plite框架-MVC模式的超轻量级框架
- php连接mysql查询一条数据
- PHP真的那么快,那为什么大项目没几个用PHP的?????
- 哪里可以下载php_mssql.dll文件?急
- [高分求助]Curl如何不get整个文件就获得文件的真实大小
- 为什么我的mysql不能插入中文
//TestForms.php
var_dump(%_POST);//测试下看看结果
array(0) { }
应该和xitami服务器没有关系的吧?