ScottInTexas
07-30-2007, 06:44 PM
When I click on reload to test some change made to css or the page or whatever, I get a message saying that the page contains POSDATA that if resent will repeat the process such as a purchase or whatever and gives me the option to OK or Cancel. I do have a form on the page, but I am not sending any form data, just reloading. Is there something I have going on that I am not aware of? This is one of the forms. When the user clicks on a menu item the value is inserted into the menu action and the 'HOME' page is recalled checking for the value before sending the header and acting accordingly. But once it gets through the switch statement it's done.
//in the navigation bar
<div id="menuFormDiv" visible="false">
<form action="" id="menuForm" method="post">
<input type="hidden" name="menuaction">
</form>
</div>
//at the top of the home page
$thisPage="Home";
if (isset($_POST['menuaction'])){
switch ($_POST['menuaction']){
case 'Register':
{
require_once "filterClass.php";
//require_once "formFunctions.php";
include("register.php");
$thisPage="Register";
break;
}
default:
$thisPage="Home";
break;
} //end switch
}//end if
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Is there something I should do to release the post data?
//in the navigation bar
<div id="menuFormDiv" visible="false">
<form action="" id="menuForm" method="post">
<input type="hidden" name="menuaction">
</form>
</div>
//at the top of the home page
$thisPage="Home";
if (isset($_POST['menuaction'])){
switch ($_POST['menuaction']){
case 'Register':
{
require_once "filterClass.php";
//require_once "formFunctions.php";
include("register.php");
$thisPage="Register";
break;
}
default:
$thisPage="Home";
break;
} //end switch
}//end if
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Is there something I should do to release the post data?