-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
class Form extends CI_Controller { | ||
public function index(){ | ||
$this->load->helper(array('form', 'url')); | ||
|
||
$this->load->library('form_validation'); | ||
|
||
if ($this->form_validation->run() == FALSE) | ||
$this->load->view('register'); | ||
else | ||
$this->load->view('register_success') | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?php echo "Login!"; ?> | ||
<?php echo "This is the login page for existing users.";?> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?php echo "Profile!"; ?> | ||
<?php echo "This is the profile view where you can read your tweets and write a new one."; ?> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
$this->load->library('form_validation'); | ||
echo validation_errors(); | ||
echo form_open('form'); ?> | ||
|
||
<h5>Name</h5> | ||
<input type="text" name="name" value="" size="50" /> | ||
|
||
<h5>Email Address</h5> | ||
<input type="text" name="email" value="" size="50" /> | ||
|
||
<h5>Username</h5> | ||
<input type="text" name="username" value="" size="50" /> | ||
|
||
<h5>Password</h5> | ||
<input type="text" name="password" value="" size="50" /> | ||
|
||
<h5>Password Confirm</h5> | ||
<input type="text" name="passconf" value="" size="50" /> | ||
|
||
<div><input type="submit" value="Submit" /></div> | ||
|
||
</form> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<h3>Your form was successfully submitted!</h3> | ||
|
||
<p><?php echo anchor('form', 'Try it again!'); ?></p> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<em>© 2017</em> | ||
<script type="text/javascript" src="<?php echo base_url("assets/js/jQuery-1.10.2.js"); ?>"></script> | ||
<script type="text/javascript" src="<?php echo base_url("assets/js/bootstrap.js"); ?>"></script> | ||
<script type="text/javascript" src="assets/js/jQuery-1.10.2.js"></script> | ||
<script type="text/javascript" src="assets/js/bootstrap.js"></script> | ||
</body> | ||
</html> |
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