Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
twitter-clone/www/application/views/register.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
45 lines (44 sloc)
1.97 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$this->load->library('form_validation'); | |
echo form_open('register'); ?> | |
<div class="login register container"> | |
<img class="icon reg" src="../img/twitter.png" alt="Twitter"> | |
<h1>Register</h1> | |
<?php echo gettype($user); ?> | |
<div class="form-group"> | |
<label for="firstname">First Name</label> | |
<input class="form-control" type="text" name="firstname" value="<?php echo set_value('firstname'); ?>"/> | |
<?php echo form_error('firstname'); ?> | |
</div> | |
<div class="form-group"> | |
<label for="lastname">Last Name</label> | |
<input class="form-control" type="text" name="lastname" value="<?php echo set_value('lastname'); ?>"/> | |
<?php echo form_error('lastname'); ?> | |
</div> | |
<div class="form-group"> | |
<label for="email">Email</label> | |
<input class="form-control" type="email" name="email" value="<?php echo set_value('email'); ?>"/> | |
<?php echo form_error('email'); ?> | |
</div> | |
<div class="form-group"> | |
<label for="location">Location</label> | |
<input class="form-control" type="text" name="location" value="<?php echo set_value('location'); ?>"/> | |
<?php echo form_error('location'); ?> | |
</div> | |
<div class="form-group"> | |
<label for="username">Username</label> | |
<input class="form-control" type="text" name="username" value="<?php echo set_value('username'); ?>"/> | |
<?php echo form_error('username'); ?> | |
</div> | |
<div class="form-group"> | |
<label for="password">Password</label> | |
<input class="form-control" type="password" name="password" value="<?php echo set_value('password'); ?>"/> | |
<?php echo form_error('password'); ?> | |
</div> | |
<button type="submit" class="btn btn-primary">Sign Up</button> | |
</form> | |
</div> | |
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
</body> | |
</html> |