So I did that and of course the search works, but I the count does not update.
/* count */
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["button2"])) && ($_POST["button2"] == "form2")) {
$updateSQL = sprintf("UPDATE members SET currentcount = currentcount + '1' WHERE mID=%s",
GetSQLValueString($_POST['nothing'], "int"),
GetSQLValueString($_POST['mID'], "int"));
mysql_select_db($database_conn, $conn);
$Result1 = mysql_query($updateSQL, $conn) or die(mysql_error());
$updateGoTo = "";
if (isset($_SERVER['QUERY_STRING'])) {
$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
$updateGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $updateGoTo));
}
/* end count */
also tried using WADBSearch1 as the target to no avail.
Considered and tried a trigger of if ""="". It did not work, but even if it had it would be less than ideal because it would count on a page refresh and probably clicking from page to page of results as well.