Home >php教程 >PHP源码 >入门新手学的调用

入门新手学的调用

PHP中文网
PHP中文网Original
2016-05-25 17:01:051043browse

从A网页输入你的用户名,留言内容,提交后从B网页显示

<?
if(empty($_POST[&#39;id&#39;]))
{
 echo"账户不能为空,5秒后自动返回登录界面";
header("refresh:5;URL=&#39;index.htm&#39;");
}
elseif(empty($_POST[&#39;guess&#39;]))
{
 echo"文本不能为空,5秒后自动返回登录页面";
header("refresh:5;URL=&#39;index.htm&#39;");
}
 else {
$id=$_POST[&#39;id&#39;];
$guess=$_POST[&#39;guess&#39;];
 echo"Hello".$id."你想对潮叹潮城网说".$guess."<br />";
}
?>


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn