<?php echo $header; ?>
<section class="content">
<article>
<h1>Your database details</h1>
<p>Firstly, weâll need a database. Anchor needs them to store all of your blogâs information, so itâs vital you fill these in correctly. If you donât know what these are, youâll need to contact your webhost.</p>
</article>
<form method="post" action="<?php echo Uri::make('database'); ?>" autocomplete="off">
<?php echo $messages; ?>
<fieldset>
<p>
<label for="host">Database Host</label>
<input id="host" name="host" value="<?php echo Input::old('host', '127.0.0.1'); ?>">
<i>Most likely <b>localhost</b> or <b>127.0.0.1</b>.</i>
</p>
<p>
<label for="port">Port</label>
<input id="port" name="port" value="<?php echo Input::old('port', '3306'); ?>">
<i>Usually <b>3306</b>.</i>
</p>
<p>
<label for="user">Username</label>
<input id="user" name="user" value="<?php echo Input::old('user', 'root'); ?>">
<i>The database user, usually <b>root</b>.</i>
</p>
<p>
<label for="pass">Password</label>
<input id="pass" name="pass" value="<?php echo Input::old('pass'); ?>">
<i>Leave blank for empty password.</i>
</p>
<p>
<label for="name">Database Name</label>
<input id="name" name="name" value="<?php echo Input::old('name', 'anchor'); ?>">
<i>Your databaseâs name.</i>
</p>
<p>
<label for="collation">Collation</label>
<select id="collation" name="collation">
<?php foreach($collations as $code => $collation): ?>
<option value="<?php echo $code; ?>" title="<?php echo $collation; ?>"<?php if($code == 'utf8_general_ci') echo ' selected'; ?>>
<?php echo $code; ?>
</option>
<?php endforeach; ?>
</select>
<i>Change if <b>utf8_general_ci</b> doesnât work.</i>
</p>
</fieldset>
<section class="options">
<button type="submit" class="btn">Next Step »</button>
</section>
</form>
</section>
<?php echo $footer; ?>