0
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の $ユーザーID = $ _POST [」で
equal operator
を使用して文字列を比較することができてユーザーID']; $ userpass = $ _POST ['password']; if(strcmp($ userid、 "3495062250")&& strcmp($ password、 "12smith00")) { ヘッダー( 'location:account-dashboard/client_349506_2243/index.html'); } \t else {header( 'location:error.html'); \t} ?> – Kingxご質問の中にコメントに含まれないようにしてください –
[PHPログインページリダイレクト]の複製が可能です(https://stackoverflow.com/questions/19782194/php-login-page-redirect) –