Previously entered form data is re-entered automatically
Posted: Tue Dec 22, 2009 3:14 pm
I have the code:
<div id="Search_Form">
<form method="post" name="Keywords" >
<p class="style1">Search For: <input type="text" name="KWs" style="width: 354px" /></p>
<p><input type="submit" value="Search!" /></p>
</form>
if ($_POST[KWs])
{ echo "Find: " .$_POST[KWs] . "<br />"; }
If I enter the page and type in a value for KWs, the next time I return to the page, the value for KWs is automatically applied rather than starting over with a "clean" form. I have tried unsetting $KWs and putting value="" into the form, but nothing seems to keep it from entering the previous text automatically.
Is there a way to always force a "clean" start?
<div id="Search_Form">
<form method="post" name="Keywords" >
<p class="style1">Search For: <input type="text" name="KWs" style="width: 354px" /></p>
<p><input type="submit" value="Search!" /></p>
</form>
if ($_POST[KWs])
{ echo "Find: " .$_POST[KWs] . "<br />"; }
If I enter the page and type in a value for KWs, the next time I return to the page, the value for KWs is automatically applied rather than starting over with a "clean" form. I have tried unsetting $KWs and putting value="" into the form, but nothing seems to keep it from entering the previous text automatically.
Is there a way to always force a "clean" start?