[eluser]solid9[/eluser]
hello people
The body_register_form.php is not showing up.
I have these codes below,
controller: method
Code:
//Register a new user
public function create_user()
{
$this->data['header_message'] = '';
$this->data['header'] = $this->load->view('header', $this->data, TRUE);
$this->data['midnav'] = $this->load->view('body_register_form', $this->data, TRUE);
$this->load->view('create_user_form');
}
view: create_user_form.php (template)
Code:
<div id="body1">
<table width="998" border="0">
<tr>
<td width="120" align="center" valign="top"><div align="justify"><?php echo $leftnav; ?></div></td>
<td width="746" align="center" valign="top"><div align="justify">
<?php echo $rightnav; ?>
<br>
<?php echo $midnav; ?>
</div></td>
</tr>
</table>
</div>
view: body_register_form.php
Code:
<h3><center>Register a new account.</center></h3>
<center>
<?php echo validation_errors(); ?>
</center>
<?php
echo '<br>';
echo form_open('main/process_new_user');
?>
<div id="register" align="center">
<table width="626" bgcolor="#333333">
<tr>
<td align="left">First Name</td>
<td align="left"><?php echo form_input('fname', ''); ?></td>
</tr>
<tr>
<td align="left">Last Name</td>
<td align="left"><?php echo form_input('lname', ''); ?></td>
</tr>
<tr>
<td align="left">Username</td>
<td align="left"><?php echo form_input('username', ''); ?></td>
</tr>
<tr>
<td align="left">Password</td>
<td align="left"><?php echo form_password('password', ''); ?></td>
</tr>
<tr>
<td align="left">Email</td>
<td align="left"><?php echo form_input('email', ''); ?></td>
</tr>
<tr>
<td align="left"></td>
<td align="left"><?php echo form_submit('mysubmit', 'Submit Post!'); ?></td>
</tr>
</table>
</div>
<?php
echo form_close();
?>
Hope someone will help me.
Thanks in advanced.