</select> <p><input type="text" name ="MobileNo" placeholder="Model"></p> <p><input type="submit" name="CreateAccount" value="Create Account"></p> </fieldset> </form> </div> </body> <?php include 'Connect.php'; $conn = connectDB('cardriverdata'); if (isset($_POST['CreateAccount'])) { $Name = $_POST['Name']; $UserId = $_POST['UserId']; $Email = $_POST['Email']; $password = $_POST['Password']; $validation_result = ValidateForm(); //Validate the information $insertionresult = InsertRecord(); //Insert Record if ($insertionresult === "true") { echo '<script>giveAlert("Success/Request for new account submitted successfully")</script>'; //header('Location:http://localhost//Asset//index.php'); } else { echo "<script>giveAlert('{$insertionresult}')</script>"; } } //Inserts the record function InsertRecord() { global $name, $encrypted_password, $email, $mobileno, $conn; $empid = $_POST['EmpID'];
function ProcessNameLocation() { global $UserID; global $SessionID; global $SessionCoords; global $Response; if (!($UserID == 0 || ($SessionID = 0 || count($SessionCoords) == 0))) { list($OK, $Msgs) = ValidateForm(array(array(TypePOST, 'LName', MustExist, ValidateString, null, null, 0))); if ($OK) { if (ExecCommand("INSERT INTO 3000_Locations (LocationLatitude, LocationLongitude, CountryID) VALUES (" . $SessionCoords[0] . "," . $SessionCoords[1] . "," . (int) $SessionCoords[2] . ");")) { list($QR, $DR, $T) = QuerySingle("SELECT last_insert_id() AS ID;"); if ($QR > 0) { $LocationID = $DR['ID']; if (ExecCommand("INSERT INTO 1100_User_Locations (UserID, LocationID, UserLocationName) VALUES (" . $UserID . "," . $LocationID . ",'" . Pacify(substr(trim($_POST['LName']), 0, 20), true) . "');")) { $Response->S = true; $Response->J = 'ClWin(); SetCLoc(' . $LocationID . '); GetData(); PopC(\'' . Pacify(Pacify('"' . substr(trim($_POST['LName']), 0, 20) . '" ' . GS(1365)), true) . '\');'; $Response->Send(); ExecCommand("UPDATE 0700_Sessions SET Latitude = NULL, Longitude = NULL, Country = 0 WHERE SessionID = " . $SessionID . ";"); } else { SysLogIt('Error creating user location for location with ID of ' . $LocationID . '.', StatusError, ActionInsert); } } else { SysLogIt('Error retrieving ID of newly created location.', StatusError, ActionSelect); } } else { SysLogIt('Error creating location.', StatusError, ActionInsert); } } } $Response->Send(); }