title: clicking on a link should display the result in same page .BACK and REFRESH button have to work normally
body: <p>Basically in my webpage (fields.php), i have two text boxes(X and Y), one submit button and 2 DIV tags (DIV id="load" , DIV id="result"). Based upon the values we provide in the 
  text boxes, a query will fetch some values from the database and display it inside the DIV id="load". Also, I have made the results to display as links(I have simply
  made the results to display in between anchor tags). So here comes my question, once we click any of the links in the DIV id="load", a query should run in the back ground 
  and it should display some kind values(fetched from database) inside the DIV id="result". <strong>The most important thing i want is, the refresh/back/forward buttons should work normally.</strong> 
  By this i mean, For example, consider we have 4 links like wwww, xxxx, yyyy, zzzz inside DIV id="load" . so if i click on the link wwww, some result (processed by a query) should get 
  displayed inside the DIV id="result". so now, if i click on xxxx, the result should replace the result for wwww. Also, if i press back button, i should see the result 
  for wwww inside the DIV  id="result". </p>
  
  <p>can some body help me on this? can any one provide the sample code.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
          &lt;title&gt;history plugin demo&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
      &lt;?php
          $x = ( !empty( $_REQUEST['X'] ) ? $_REQUEST['X'] : null );
          $y = ( !empty( $_REQUEST['Y'] ) ? $_REQUEST['Y'] : null );
  
      ?&gt;
          Ajax load&lt;BR&gt;
              &lt;form id="myForm" action='fields.php' method='GET' rel="history"&gt;
                  X &lt;BR&gt;
                  &lt;input type="text" name="X" id="ix" value="&lt;?=$x;?&gt;"&gt;&lt;BR&gt; &lt;BR&gt;
                  Y &lt;BR&gt;
                  &lt;input type="text" name="Y" id="iy" value="&lt;?=$y;?&gt;"&gt; &lt;BR&gt; &lt;BR&gt;
                  &lt;input id="sub" type="submit" value="Search" align="centre"/&gt;
              &lt;/form&gt;
          &lt;hr&gt;
              &lt;!-- here i am performing lot of database queries using php, but to show it to you, i have simplified the code!--&gt; 
              &lt;div id="load"&gt;&lt;a href= "#")&gt; &lt;?php echo $x; ?&gt; &lt;/a&gt;&lt;/div&gt; &lt;!-- so here whne i click on the link, i should pass the link as a text parameter to a  query  and display the result in div id= result IMPORTANT is : BACK AND REFRESH BUTTON SHOULD WORK AS NORMALLY !--&gt;
              &lt;div id="result"&gt; &lt;/div&gt;
          &lt;hr&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>