Thanks, Ian.
I've just tried the server redirect and for whatever reason, nothing happens when ckicking on the form button.
// ------------------------- Here is my session var:
<?php
if (!session_id()) session_start();
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$_SESSION["ntu_date"] = "".$row_ntu['ntu_date'] ."";
}
?>
// ------------------------- And here is the redirect:
<?php
if(($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST)){
$WA_Redirect_URL = "ntu_form.php";
$WA_Redirect_KeepQS = true;
if ($WA_Redirect_URL != "") {
if ($WA_Redirect_KeepQS && $WA_Redirect_URL != "" && isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] !== "") {
$WA_Redirect_URL .= ((strpos($WA_Redirect_URL, '?') === false)?"?":"&").$_SERVER["QUERY_STRING"];
}
header("Location: ".$WA_Redirect_URL);
}
}
?>
// ------------------------- And here is the form:
<form action="" method="post" name="ntu_form" id="ntu_form" onsubmit="WA_setFormCookie(WA_CookieObj,document.ntu_form,'WAFC_ntu_ntu_form', 30)">
<div class="ntubox_info">
<div class="ntu_cal"><img src="images/cal.gif" width="48" height="52" alt="" /></div>
<div class="ntu_register">
<input name="" type="button" value="Sign up" />
<input name="hiddenField" type="hidden" id="hiddenField" value="<?php echo $row_ntu['ntu_date']; ?>" />
<br />
<!--<a href="#"><img src="images/signup.gif" alt="register" width="100" height="52" border="0" /></a>-->
</div>
<div class="ntu_title"><?php echo $row_ntu['ntu_title']; ?></div>
<div class="ntu_content"><?php echo $row_ntu['ntu_date']; ?> </div>
<div class="ntu_seats"> Seats Available: <span class="bold-red"><?php echo $row_ntu['seats_avail']; ?></span> </div>
<div class="clear"></div>
</div>
</form>
Any idea?