2 つのフォームがあります (ログイン/サインイン)
ログイン:
<form action="#" method="post">
<input type="text" size="25" name="fname" placeholder="First Name" value="<?php echo $fn; ?>"/>
<input type="text" size="25" name="lname" placeholder="Last Name" value="<?php echo $ln; ?>"/>
<input type="text" size="25" name="username" placeholder="Username" value="<?php echo $un; ?>"/>
<input type="text" size="25" name="email" placeholder="Email" value="<?php echo $em; ?>">
<input type="text" size="25" name="email2" placeholder="Repeat Email" value="<?php echo $em2; ?>"/>
<input type="password" size="32" name="password" placeholder="Password"/>
<input type="password" size="32" name="password2" placeholder="Repeat Password"/><br />
<input type="submit" name="reg" value="Sign Up!"/>
</form>
ログイン:
<form>
<center><input type ="text" size="25" name="User_login" id="user_login" placeholder="username"/>
<input type ="password" size="25" name="user_password" id="user_password" placeholder="password"/><br />
<input type ="submit" name="button" id="button" value="login to your account!"/></center>
</form>
いずれかのフォームでサインイン ボタンまたはログイン ボタンを押すと、同じページに戻ります (これが必要です) が、アドレス バーに次のように表示されます。
http:// localhost/sites/socialnetwork/User_login=&user_password=&button=login+to+your+account%21#
私がしたいのはhttp:// localhost /sites/socialnetwork/#
アドレス バーに入力http:// localhost/ sites/ socialnetwork/
すると、ページは完全に表示されますが、サインイン ボタンをクリックするとすぐに、最初のリンクに移動します。
どちらのリンクも同じページを表示しますが、表示されないようにするにはどうすればよいですか
User_login=&user_password=&button
等
何か案は?