Skip to content

Commit

Permalink
updated initialsetup for better code handling, updated signup_form
Browse files Browse the repository at this point in the history
  • Loading branch information
UBC Student committed Jun 19, 2024
1 parent 2a10ee5 commit 4fefa21
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 3 additions & 4 deletions project/login_pages/signup_form.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php
session_start();
include "../utils.php";
include "navbar.html";


?>

<html>
Expand Down Expand Up @@ -88,9 +89,7 @@
<input type="text" name="name" placeholder="Enter your name (required)">
<input type="text" name="address" placeholder="Enter your address (required)">
<input type="text" name="phoneNo" placeholder="Enter your number (required)">
<p> Upload your profile photo</p>
<label for="fileToUpload">Select image to upload:</label>
<input type="file" name="fileToUpload" id="fileToUpload">
<input type="text" name="password" placeholder="Enter your password (required)">
<input type="submit" value="Continue">
</form>

Expand Down
5 changes: 5 additions & 0 deletions project/sql/initialsetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ function handleGenerateTables() {
Name VARCHAR2(100),
Address VARCHAR2(100),
Email VARCHAR2(100),
password VARCHAR(255) NOT NULL,
PhoneNo VARCHAR2(15)
)",
"CREATE TABLE Orders (
Expand All @@ -44,12 +45,16 @@ function handleGenerateTables() {
vendorID INT PRIMARY KEY,
name VARCHAR2(100),
address VARCHAR2(255),
Email VARCHAR2(100),
cuisineType VARCHAR2(50),
password VARCHAR(255) NOT NULL,
contactNo VARCHAR2(15)
)",
"CREATE TABLE DeliveryPersonnel (
DeliveryPersonId INT PRIMARY KEY,
name VARCHAR2(100),
Email VARCHAR2(100),
password VARCHAR(255) NOT NULL,
contactNo VARCHAR2(15)
)",
"CREATE TABLE Vehicle (
Expand Down

0 comments on commit 4fefa21

Please sign in to comment.