<?php
// Loading demo class
require 'DemoRegister.php';
// Example with Read Records
echo '<h2><a href=".">DEMOS</a> › READING RECORDS</h2>';
// Creating an instance
$demo = new DemoRegister;
?>
<div class="pdo4you">
<form method="post">
<h3><?php echo $demo::ADD_NEW_USER; ?></h3>
<div><?php echo $demo::FIRST_NAME; ?>: <input type="text" name="firstname" /></div>
<div><?php echo $demo::LAST_NAME; ?>: <input type="text" name="lastname" /></div>
<div><?php echo $demo::MAIL; ?>: <input type="text" name="mail" /></div>
<div><input type="submit" value="Register" /></div>
</form>
<?php echo $demo->getMessage(); ?>
<?php echo $demo::TOTAL_USERS; ?>: <?php echo $demo->getTotalOfRecords(); ?>
<?php echo $demo->showRecords(); ?>
</div>
|