Skip to content
Permalink
eb691ad8ea
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
26 lines (24 sloc) 1.11 KB
<?php
error_reporting(0);
$this->load->library('form_validation');
echo form_open('login');
?>
<div class="login container">
<img class="icon" src="<?php echo base_url("img/twitter.png")?>" alt="Twitter">
<div class="form-group">
<label for="username">Username</label>
<input class="form-control" type="text" name="username" value="<?php echo set_value('username'); ?>" placeholder="Enter 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'); ?>" placeholder="Enter password"/>
<?php echo form_error('password'); ?>
</div>
<button type="submit" class="btn btn-primary">Login</button><span> or <a href="register">Create an account</a></span>
</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>