123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- include "config.php";
-
-
-
-
- $firstN = $_POST['first_name'];
- $lastN = $_POST['last_name'];
- $country = $_POST['country'];
- $city = $_POST['city'];
- $phone = $_POST['phone'];
- $healthcare = $_POST['healthcare'];
-
-
-
-
- // have tp change from insert to update or add update
- $query = "INSERT INTO Profile (first_name, last_name, country, city, phone_number, healthcare_provider)
- VALUES ('$firstN', '$lastN', '$country', '$city', $phone, '$healthcare')";
-
-
- $results = mysqli_query($connect, $query);
-
-
-
-
- echo $results;
-
- if($results == True)
- {
-
- }
- else {
- echo "User not registered";
- }
- ?>
|