Welcome Guest, Not a member yet? Register   Sign In
after form submit and use back button..form have values...need to remove
#10

[eluser]Vi.[/eluser]
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
&lt;html &gt;
&lt;head&gt;
  &lt;title&gt;&lt;/title>
  [removed]
  /* Clear function will clear the value Add your Input name below */
  function clear(){
    parent.document.forms[0].Keyword.value = ""; /* Reset keyword input name */
    parent.document.forms[0].Where.value = "";   /* Reset Where input name */
  }
  [removed]
&lt;/head&gt;
&lt;body&gt;
&lt;?php
    print_r($_POST); // Print posted data
?&gt;
&lt;form name="form" method="POST" enctype="application/x-www-form-urlencoded" action=""&gt;
    &lt;input name="Keyword" value="asddd" /&gt;
    &lt;input name="Where" value="" /&gt;
    &lt;input  type="submit" name="submit" value="Send" /&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;

Here is my code. I tried this code and It is working only with IE. Modern browsers use cache for fast Go back. You can check this page to no-cache header. This is easy way to do.


Messages In This Thread
after form submit and use back button..form have values...need to remove - by El Forum - 05-23-2009, 07:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB