Note that there are some explanatory texts on larger screens.

plurals
  1. POWant to Refresh the page when i click the browser back button
    primarykey
    data
    text
    <p>I'm making a website in which there is a login page and then the home page.. Now once I have logged in I want this to happen.</p> <p>It should not go back to the login page when I click THE BROWSER BACK BUTTON. </p> <p>It should refresh the home page jus like HOW FACEBOOK DOES..</p> <p>I have checked and googled but I am not finding the answer...</p> <p>I would really appreciate it if anyone helps me... Thank You..</p> <p>This is the <strong>login page.</strong></p> <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt; &lt;HTML&gt; &lt;HEAD&gt; &lt;TITLE&gt;mindclik&lt;/TITLE&gt; &lt;link rel="stylesheet" type="text/css" href="stylesheets\home.css"&gt; &lt;link rel="stylesheet" type="text/css" href="stylesheets/home.css"&gt; &lt;/HEAD&gt; &lt;BODY&gt; &lt;div id="wrap"&gt; &lt;div id="main"&gt; &lt;div id ="left"&gt; &lt;/br&gt; &lt;h2&gt;Login&lt;/h2&gt; &lt;form id="login_form" action="home.php" method="post" &gt; &lt;table &gt; &lt;tr&gt; &lt;td&gt; Email: &lt;/td&gt; &lt;td&gt; &lt;input type="text" name="email" id="email" class="login_tb" &gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; Password: &lt;/td&gt; &lt;td&gt; &lt;input type=password name="pwd" id="pwd"" class="login_tb"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;/td&gt; &lt;td&gt; &lt;input type=submit id="sub" value="SignIn"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/form&gt;&lt;/div&gt; &lt;/div&gt;&lt;/div&gt; </code></pre> <p> </p> <p>This is the <strong>homePage.php</strong> </p> <pre><code>&lt;?php $p_uname=$_POST['email']; $p_pass=$_POST['pwd']; $enc_pass=md5($p_pass); ?&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Home&lt;/title&gt; &lt;link rel="stylesheet" type="text/css" href="stylesheets/home1.css"&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="wrap"&gt; &lt;div id="left_contain"&gt; Friend List&lt;/div&gt; &lt;div id="main"&gt;&lt;/div&gt; &lt;div id="right_contain_top"&gt;Friend New Answers&lt;/div&gt; &lt;div id="right_contain_bot"&gt;Questions From AOF&lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload