php页面是登录处理页面,是通过html的登录页面的表单获取的数据
<?php
session_start();
if(isset($_POST["submit"]) && $_POST["submit"] == "登录")
{
$user = $_POST["userid"];
$psw = $_POST["password"];
if($user == "" || $psw == "")
{
echo "<script>alert('请输入用户名或密码!'); history.go(-1);</script>";
}
else
。。。。。。。。。。。。
if($count > 0)
{
$_SESSION['loggedin'] = true;
header("Location: index.html");
}
成功后跳转到index。html页面,我想在index页面显示,“欢迎,xxx“
这个xxx是php页面中的$user的变量,也就是登录的html页面中表单传输到php页面的那个量
应该用什么方法呢