Update heres what i have now:
if ($_POST[‘sessiona’] == “121” OR $_POST[‘sessionb’] == “221” OR $_POST[‘sessionc’] == “321” OR $_POST[‘sessiond’] == “421”){
if ((isset($_POST[“MM_update”])) && ($_POST[“MM_update”] == “form1”)) {
$updateSQL = sprintf(“UPDATE users SET tshirt=%s, sessiona=%s, sessionb=%s, sessionc=%s, sessiond=%s WHERE idusers=%s”,
GetSQLValueString($_POST[‘Tshirt2’], “text”),
GetSQLValueString($_POST[‘sessiona’], “text”),
GetSQLValueString($_POST[‘sessionb’], “text”),
GetSQLValueString($_POST[‘sessionc’], “text”),
GetSQLValueString($_POST[‘sessiond’], “text”),
GetSQLValueString($_POST[‘idusers’], “text”));
mysql_select_db($database_wellness, $wellness);
$Result1 = mysql_query($updateSQL, $wellness) or die(mysql_error());
$updateGoTo = “schedule.php”;
if (isset($_SERVER[‘QUERY_STRING’])) {
$updateGoTo .= (strpos($updateGoTo, ‘?’)) ? “&” : “?”;
$updateGoTo .= $_SERVER[‘QUERY_STRING’];
}
now it works … but if i set it to the proper thing in one of the fields it updates fields with default values not ones they choose.