| Server IP : 68.183.124.220 / Your IP : 216.73.217.131 Web Server : Apache/2.4.18 (Ubuntu) System : Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : gavin ( 1000) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/worksheets/realm-condos/ |
Upload File : |
<?php
//if (! empty($_POST["submit_button"])) {
if(isset($_POST['submit_button'])) {
require_once '../class/Customer.php';
$customer = new Customer();
$customer->saveToFile();
$message = "Thank you for your registration !";
echo "<script>alert('$message');</script>";
}
?>
<html>
<head>
<center><img class="image" src="https://www.condosdeal.com/wp-content/uploads/2020/12/Realm-Condos.png"></center>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body{
font-family: Calibri, Helvetica, sans-serif;
background-color: white;
}
.image {
width:50%;
margin-right: auto;
margin-left: auto;
}
.container {
width: 60%;
margin-right: auto;
margin-left: auto;
padding: 50px;
background-color: #A7BCB8;
}
.registerbtn {
font-size : 20px;
}
input[type=text], input[type=password], textarea {
width: 100%;
padding: 15px;
margin: 5px 0 22px 0;
display: inline-block;
border: none;
background: #f1f1f1;
}
input[type=text]:focus, input[type=password]:focus {
background-color: orange;
outline: none;
}
div {
padding: 10px 0;
}
hr {
border: 1px solid #f1f1f1;
margin-bottom: 25px;
}
.registerbtn {
background-color: #4CAF50;
color: white;
padding: 16px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 100%;
opacity: 0.9;
}
.registerbtn:hover {
opacity: 1;
}
</style>
</head>
<body>
<form action="" method="post" enctype='multipart/form-data'>
<div class="container">
<center> <h1> Realm Condos Registration Form</h1> </center>
<hr>
<label> <b>Legal First Name </b></label>
<input type="text" name="firstname" placeholder= "First Name" size="15" required />
<label> <b>Legal Last Name </b> </label>
<input type="text" name="lastname" placeholder="Last Name" size="15" required/>
<label> <b>Street Address </b> </label>
<input type="text" name="street_address" placeholder="Street Address" size="60" required/>
<label> <b>City </b> </label>
<input type="text" name="city" placeholder="City" size="20" required/>
<label> <b>Province </b> </label>
<input type="text" name="province" placeholder="Province" size="20" required/>
<label> <b>Postal Code </b> </label>
<input type="text" name="postal_code" placeholder="Postal Code" size="20" required/>
<label> <b>Country </b> </label>
<input type="text" name="country" placeholder="Country" size="30" required/>
<label> <b>Phone Number </b> </label>
<input type="text" name="phone_number" placeholder="Phone Number" size="30" required/>
<label> <b>Email</b> </label>
<input type="text" name="email" placeholder="Email" size="60" required/>
<hr>
<label> <b>Date of Birth</b> (YYYY-MM-DD) </label>
<input type="text" name="birthday" placeholder="Date of Birth" required/>
<label> <b>Driver License Number</b> </label>
<input type="text" name="driver_license_number" placeholder="Driver License Number" size="60" required/>
<label> <b>Driver License Expire Date</b> (YYYY-MM-DD) </label>
<input type="text" name="driver_license_expire_date" placeholder="Driver License Expire Date" size="60" required/>
<label> <b>Occupation</b> </label>
<input type="text" name="occupation" placeholder="Occupation" size="60" required/>
<label> <b>Employer</b> </label>
<input type="text" name="employer" placeholder="Employer" size="120" required/>
<div title="ID Photo or Images">
<label><h3>Upload ID File</h3></label>
<input type="file" name="idfiles[]" multiple required>
</div>
<hr>
<div>
<label>
Budget :
</label>
<select name="budget">
<option value="$300,000 - $400,000">$300,000 - $400,000</option>
<option value="$400,000 - $500,000">$400,000 - $500,000</option>
<option value="$500,000 - $600,000">$500,000 - $600,000</option>
<option value="$600,000 - $700,000">$600,000 - $700,000</option>
<option value="$700,000 - $800,000">$700,000 - $800,000</option>
<option value="$800,000 - $900,000">$800,000 - $900,000</option>
<option value="$900,000 - $1,000,000">$900,000 - $1,000,000</option>
<option value="$1,000,000 - $1,200,000">$1,000,000 - $1,200,000</option>
<option value="$1,200,000 - $1,400,000">$1,200,000 - $1,400,000</option>
<option value="$1,400,000 - $1,600,000">$1,400,000 - $1,600,000</option>
<option value="$1,600,000 - $1,800,000">$1,600,000 - $1,800,000</option>
<option value="$1,800,000 - $2,000,000">$1,800,000 - $2,000,000</option>
<option value="Above $2,000,000">Above $2,000,000</option>
</select>
</div>
<div>
<label>
Type of Unit :
</label><br>
<input type="radio" value="s" name="unit_type"> Studio
<input type="radio" value="1b" name="unit_type"> 1 Bedroom
<input type="radio" value="1b_plus_1d" name="unit_type"> 1 Bedroom + Den
<input type="radio" value="2b" name="unit_type"> 2 Bedroom
<input type="radio" value="2b_plus_1d" name="unit_type"> 2 Bedroom + Den
<input type="radio" value="3b" name="unit_type"> 3 Bedroom
</div>
<div>
<label>Parking Lot</label>
<select name="parking_lot">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
</select>
</div>
<div>
<label>Locker</label>
<select name="locker">
<option value="0">0</option>
<option value="1">1</option>
</select>
</div>
<hr>
<button type="submit" class="registerbtn" name="submit_button">Submit</button>
</form>
<script>
function Register(){
$("#firstname").removeClass("error-field");
}
</script>
</body>
</html>