Skip to content

Instantly share code, notes, and snippets.

@tony1223
Created October 14, 2012 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tony1223/3888869 to your computer and use it in GitHub Desktop.
Save tony1223/3888869 to your computer and use it in GitHub Desktop.
<?php include("_site_header.php"); ?>
<div class="container">
<?php include("_content_nav.php") ?> <?php /* include content_nav */ ?>
<div class="content">
<form action="<?=site_url("/user/registering")?>" method="post" >
<?php if (isset($errorMessage)){?>
<div class="alert alert-error">
<?=$errorMessage?>
</div>
<?php }?>
<table class="table table-bordered">
<tr>
<td>
Account
</td>
<td>
<?php if(isset($account)){ ?>
<input type="text" name="account" value="<?=htmlspecialchars($account)?>" />
<?php }else{ ?>
<input type="text" name="account" />
<?php } ?>
</td>
</tr>
<tr>
<td>
Password
</td>
<td>
<input type="password" name="password" />
</td>
</tr>
<tr>
<td>
Re-type Password
</td>
<td>
<input type="password" name="passwordrt" />
</td>
</tr>
<tr>
<td colspan="2">
<input class="btn" type="submit" value="送出" />
</td>
</tr>
</table>
</form>
</div>
</div>
<?php include("_site_footer.php"); ?>
<?php include("_site_header.php"); ?>
<div class="container">
<?php include("_content_nav.php") ?> <?php /* include content_nav */ ?>
<div class="content">
<div class="alert alert-success">
恭喜你 (<?=$account?>),你已經完成註冊,
接下來馬上到登入頁面去試試看吧!
<a href="<?=site_url("user/login")?>">登入</a>
</div>
</div>
</div>
<?php include("_site_footer.php"); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment