我想在系統中註冊user.two類型的用戶註冊後重定向不同的網頁。但它們只能重定向到(conduct.php)頁面。多用戶登錄重定向php中的不同頁面
register.php
<?php
//session_start();
include('connect.php');
if(isset($_POST['submit'])){
extract($_POST);
var_dump($_POST);
$mysql_query = mysql_query("INSERT INTO `iportal`.`signup` (
`registation_no` ,
`name` ,
`batch` ,
`stream` ,
`email` ,
`username` ,
`password` ,
`isuser`
)
VALUES (
'$registrationnumber', '$fullname', '$batch', '$stream', '$email', '$username', '$password', '$isUser'
)
");
if($isUser=0){
header("Location: practical.php");
}
if($isUser=1){
header("Location: conduct.php");
}
}
?>
在PHP對比在==進行使用和測試 –
我想我是在重定向錯誤的方式。所以我問這個問題。謝謝! –