Implemented userInfo submition but is don't work yet

This commit is contained in:
CodeServer
2021-08-03 14:00:12 +01:00
parent d5b349342a
commit 9891cf1dc4
10 changed files with 122 additions and 48 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php
require_once 'connection.php';
require_once 'functions.php';
$conn = connectMysql();
require_once 'logged_in_header.php';
$userName = $_SESSION['username'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$address = $_POST['address'];
$unit = $_POST['unit'];
$city = $_POST['city'];
$country = $_POST['country'];
$zip = $_POST['zip'];
$isChecked = $_POST['isChecked'];
if (isset($_POST['isChecked'])) {
$error = qeury_updateUserInfo($conn, $userName, $email, $phone, $address, $unit, $city, $country, $zip);
header("Location: ../shopping/userInfo.php?error=$error");
} else {
header("Location: ../shopping/userInfo.php?error=notChecked");
exit();
}
$conn->close();
?>