php编程问题

来源:百度知道 编辑:UC知道 时间:2024/05/13 08:27:06
编写一脚本文件显示如下信息:正确的用户名为marry,密码为1234,当用户输入marry和1234后,显示Wellcome marry! Today is 系统日期;如果输入错误用户名和密码,将显示 You have not right to login! 单击此处返回.

<?
if ($_POST[user]=="marry" && $_POST[pass]=="1234") {
echo "Wellcome marry! Today is ".date("Y-m-d");
} else {
echo "You have not right to login! 单击<a href='#'>此处</a>返回."
}
?>