Welcome Guest, Not a member yet? Register   Sign In
problem when using form helper with <table>
#1

[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;">
    &lt;?php echo form_open('login/validation'); ?&gt;
        <table class="login_table" id="login_table">  
                <tr>
                    <td>
                        &lt;?php echo form_input('email','Email'); ?&gt;
                    </td>
                    <td>
                        &lt;?php echo form_password('password','Password'); ?&gt;
                    </td>
                    <td>
                        &lt;?php echo form_submit('submit','Login'); ?&gt;
                    </td>
                </tr>
                <tr>
                    <td>
                    &lt;?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');
                    ?&gt;                      
                    </td>
                    <td>
                         &lt;?php echo anchor('login/forgot_password','Forgot your password?', array('title' => 'Forgot your password?')); ?&gt;
                    </td>
                </tr>
            </table>
    </div>
#2

[eluser]myselfzjp[/eluser]
anyone can help?




Theme © iAndrew 2016 - Forum software by © MyBB