<!DOCTYPE html>
<html lang="en">
<?= $this->include('header') ?>
<title>rizz</title>
<body data-bs-theme="dark">
    <div class="container">
        <form method="post" action="<?php echo base_url('register/post'); ?>">  
        
            <div class="row">
                <form>
                    <div class="form-group m-2">
                        <label for="InputUsername">Username</label>
                        <input type="text" class="form-control" id="InputUsername" name="username" placeholder="Enter username">
                    </div>
                    <div class="form-group m-2">
                        <label for="InputPassword">Password</label>
                        <input type="password" class="form-control" id="InputPassword" name="password" placeholder="Password">
                    </div>
                    <div class="col-3">
                        <button type="submit" class="btn btn-primary m-2" value="Register">Submit</button>
                    </div>
                </form>
            </div> 
        </form>    
        <div class="col-3">
            <?php
                // inicialize session ka $session mainigo un iegustu one time message no Flashdata
                $session = service('session');
                $message = $session->get('message');
                if(isset($message)){
                    echo $message;
                } 
                ?>
        </div>
    </div> 

</body>

</html>