私は非常に基本的なフレームレイアウトを持っています:index.html
<frameset rows="80,*" frameborder="1" border="5" framespacing="0">
<frame name="topNav" src="top_nav.html">
<frameset cols="220,*" frameborder="1" border="5" framespacing="0">
<frame name="menu" src="menu_1.php" marginheight="0" marginwidth="0" scrolling="auto" noresize>
<frame name="content" src="content.php" marginheight="0" marginwidth="0" scrolling="auto" noresize>
</frameset>
</frameset>
また、ユーザー名とパスワードがデータベースなどと一致するかどうかを確認する簡単なログインスクリプト
今私がしたいのは、情報が正しいかどうかです。メニューバーを自動リダイレクトすることですが、私にできることはコンテンツセクションをリダイレクトすることだけです。
// check to see if they match!
if ($username==$dbusername&&$password==$dbpassoword)
{
$_SESSION['username']=$username;
echo '<meta http-equiv="REFRESH" content="2 ; url=servers.php" target="menu">';
}
else
echo "<center>Incorrect Information!</center>" ;
<a href>
これで、ユーザーにタグをクリックしてもらうと簡単に実行できます
例えば<a href="servers.php" target="menu">click me</a>
target="menu"
だから私は自分のタグに簡単に入れることができると思いましたmeta
、しかしそれがするのはコンテンツページをリダイレクトすることだけです。
だから私の質問は、私は何か間違ったことをしているのですか、それともこれを行うためのより簡単な方法がありますか?