PHP Classes

File: demo/views/login.tpl.php

Recommend this page to a friend!
  Classes of Nikos M.   PHP Login System Manager   demo/views/login.tpl.php   Download  
File: demo/views/login.tpl.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Login System Manager
Manage user register and login in a single script
Author: By
Last change: v.1.1.1

* simplify some code and clarify demo example better
Date: 7 months ago
Size: 470 bytes


Class file image Download
<?php $this->extend('content.tpl.php'); ?>

<?php $this->start('content'); ?>
if (!empty($error)) { ?><div style="font-size:16px;color:red"><?php echo $error; ?></div><?php } ?>
<form method="post" action="<?php echo tico()->uri('/login'); ?>">
<label>Username</label>:<input type="text" name="username" />
<br />
<label>Password</label>:<input type="password" name="password" />
<br />
<button type="submit">Login</button>
<?php $this->end('content'); ?>