| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <div class="container mt-3 py-4">
- <h2>Register</h2>
- <p>Become a tester and earn £10 per test which should last no longer than 6 minutes!</p>
- <p>If you want more information on our security policy, please call Greg on 0333 577 8989 (national call rate) or 07939 699 636.</p>
- <hr />
- <form method="post">
- <div class="row">
- <div class="col-md-6">
- <div class="form-group">
- <label for="title">Title</label>
- <select class="form-control" name="title" id="title" required>
- <option value="">Select Title</option>
- <?php
- foreach(User::TITLES as $title) {
- $selected = ($user->title == $title) ? "selected" : "";
- ?>
- <option value="<?=htmlspecialchars($title)?>" <?=$selected?>><?=htmlspecialchars($title)?></option>
- <?php
- }
- ?>
- </select>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md">
- <div class="form-group">
- <label for="first-name">First Name</label>
- <input class="form-control" type="text" name="first_name" id="first-name" placeholder="Enter first name" value="<?=htmlspecialchars($user->first_name)?>" required />
- </div>
- </div>
- <div class="col-md">
- <div class="form-group">
- <label for="last-name">Last Name</label>
- <input class="form-control" type="text" name="last_name" id="last-name" placeholder="Enter last name" value="<?=htmlspecialchars($user->last_name)?>" required />
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md">
- <div class="form-group">
- <label for="email">Email Address</label>
- <input class="form-control" type="email" name="email" id="email" value="" placeholder="Enter email address" value="<?=htmlspecialchars($user->email)?>" required />
- </div>
- </div>
- <div class="col-md">
- <div class="form-group">
- <label for="phone">Mobile Number</label>
- <input class="form-control" type="phone" name="phone" id="phone" value="" placeholder="Enter mobile number" value="<?=htmlspecialchars($user->phone)?>" required />
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md">
- <div class="form-group">
- <label for="password">Password</label>
- <input class="form-control" type="password" name="password" id="password" placeholder="Enter password" required />
- </div>
- </div>
- <div class="col-md">
- <div class="form-group">
- <label for="password-confirm">Confirm Password</label>
- <input class="form-control" type="password" name="password_confirm" id="password-confirm" placeholder="Confirm password" required />
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md">
- <div class="form-group">
- <label for="date-of-birth">Date of Birth</label>
- <input class="form-control" type="date" name="date_of_birth" id="date-of-birth" placeholder="YYYY-MM-DD" value="<?=htmlspecialchars($user->date_of_birth)?>" required />
- </div>
- </div>
- <div class="col-md">
- <div class="form-group">
- <label for="postal-code">Postal Code</label>
- <input class="form-control" type="text" name="postal_code" id="postal-code" placeholder="Enter postal code" value="<?=htmlspecialchars($user_address->postal_code)?>" required />
- </div>
- </div>
- </div>
- <button class="btn btn-primary" type="submit" name="submit" value="<?=htmlspecialchars($_SESSION["csrf_token"])?>">Register</button>
- </form>
- </div>
|