Code Igniter Form


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <html>
  2. <head>
  3. <title>My Form</title>
  4. </head>
  5. <body>
  6.  
  7. <?php echo $this->validation->error_string; ?>
  8.  
  9. <?php echo form_open('form'); ?>
  10.  
  11. <h5>Username</h5>
  12. <input type="text" name="username" value="" size="50" />
  13.  
  14. <h5>Password</h5>
  15. <input type="text" name="password" value="" size="50" />
  16.  
  17. <h5>Password Confirm</h5>
  18. <input type="text" name="passconf" value="" size="50" />
  19.  
  20. <h5>Email Address</h5>
  21. <input type="text" name="email" value="" size="50" />
  22.  
  23. <div><input type="submit" value="Submit" /></div>
  24.  
  25. </form>
  26.  
  27. </body>
  28. </html>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.