【发布时间】:2017-09-04 15:55:43
【问题描述】:
我需要有关 PHP 错误的帮助,我想在这里使用表单登录输入重定向到不同的页面,因为我不知道如何制作管理后端以通过数据库将用户重定向到不同的页面,这里是我的PHP
脚本
// 重定向到不同的页面
<?php $userid = $_POST['userid'];
$userpass = $_POST['password'];
if (strcmp($userid, "3495062250") && strcmp($password, "12smith00") ) {
header('location: account-dashboard/client_349506_2243/index.html');
} else{ header('location: error.html'); } ?>
【问题讨论】:
-
-
请在您的问题中添加代码而不是在评论中
标签: php redirect http-redirect