<?php// how we get form info with a POST form
// $_POST['firstname'] contains what they entered in "firstname" input
// $_POST['lastname'] contains what they entered in "lastname" inputecho '<p>Hello '.$_POST['firstname'].' '.$_POST['lastname'].'</p>';// would output:
// <p>Hello Joe Bloggs</p>?>这个是myscript.php
// $_POST['firstname'] contains what they entered in "firstname" input
// $_POST['lastname'] contains what they entered in "lastname" inputecho '<p>Hello '.$_POST['firstname'].' '.$_POST['lastname'].'</p>';// would output:
// <p>Hello Joe Bloggs</p>?>这个是myscript.php
跟程序没有问题
直接 echo $firstname."<br>".$lastname;
我以前也是因为include文件里有一个FORM,冲突,所以老取不了值.
以下是PHP的语句
?>
<form>在这里添加表单的内容就行了。</form>
<?php
接着写PHP语句
?>