[eluser]myselfzjp[/eluser]
Hi,
when I tried to add a login form today, I mixed php code with html as below. The code works perfect on my local server, but doesnot work when I put it on the public server, the web page only loaded the first line of the following code, the rest wasnot loaded at all.
I am new to php and codeigniter, hope someone can help.
I am using codeigniter 2, local server is appserv 2.5.10.
Environment of public server is Apache/1.3.41 (Unix) PHP/5.2.14 with Suhosin-Patch mod_ssl/2.8.31 OpenSSL/0.9.8n
Code:
<div class="login_form" id="login_form" style="float:right;">
<?php echo form_open('login/validation'); ?>
<table class="login_table" id="login_table">
<tr>
<td>
<?php echo form_input('email','Email'); ?>
</td>
<td>
<?php echo form_password('password','Password'); ?>
</td>
<td>
<?php echo form_submit('submit','Login'); ?>
</td>
</tr>
<tr>
<td>
<?php $checkboxdata=array('id'=>'keep_logged_in','value'=>'accept','checked'=>false,);
echo form_checkbox($checkboxdata);
echo form_label('Keep me logged in','keep_logged_in');
?>
</td>
<td>
<?php echo anchor('login/forgot_password','Forgot your password?', array('title' => 'Forgot your password?')); ?>
</td>
</tr>
</table>
</div>