$newLocation->f_description = unFixQuotes($HTTP_POST_VARS["newDescription"]); $newLocation->f_type = unFixQuotes($HTTP_POST_VARS["newLocationType"]); $errMsg = $newLocation->insertNew(); $ride->f_locationID = $newLocation->f_locationID; } if (!$errMsg) { if ($newRide) { $errMsg = $ride->insertNew(unFixQuotes($HTTP_POST_VARS["password"])); if (!$errMsg) { $normMsg = "Ride Inserted"; $rideID = $ride->f_rideID; $newRide = 0; } } else { $ride->f_rideID = $rideID; $errMsg = $ride->update($password); if (!$errMsg) { $normMsg = "Ride Updated"; } } } } //Get the data from the db if we aren't doing a new //ride and there was no error (on error, we want the //values the user entered before to still be present) if (!$newRide && !$errMsg) { $errMsg = $ride->getDB_id($rideID); if (!$ride->f_rideID || $errMsg) { //NPS: What o what to do with these people? How about //we send them back to the original page. Header("Location:{$RD_baseURL}/showRides.php" . encodeGet($getVars));
$newLocation->f_description = unFixQuotes($HTTP_POST_VARS["newDescription"]); $newLocation->f_type = unFixQuotes($HTTP_POST_VARS["newLocationType"]); $errMsg = $newLocation->insertNew(); $ride->f_locationID = $newLocation->f_locationID; } if (!$errMsg) { if ($newRide) { $errMsg = $ride->insertNew($fixedPassword); if (!$errMsg) { $getVars["rideID"] = $ride->f_rideID; header("Location: ../showRide.php" . encodeGet($getVars)); return; } } else { $ride->f_rideID = $rideID; $errMsg = $ride->update($fixedPassword); if (!$errMsg) { $getVars["rideID"] = $ride->f_rideID; header("Location: ../showRide.php" . encodeGet($getVars)); return; } } } } //Get the data from the db if we aren't doing a new //ride and there was no error (on error, we want the //values the user entered before to still be present) if (!$newRide && !$errMsg) { $errMsg = $ride->getDB_id($rideID); if (!$ride->f_rideID || $errMsg) { //NPS: What o what to do with these people? How about