Welcome Guest, Not a member yet? Register   Sign In
[solved]$this->input->post() not working?
#2

[eluser]brucebat[/eluser]
Fixed it:

Apparently if you have

form_label() outside of form_open()

It can break your form!

This was what was wrong:

Code:
//Title
                    echo '<legend style="margin-bottom:20px;"><h2 style="color:#F00820;">Patient Data</h2></legend>';
                    echo '<fieldset style="border: none">';
                    //Labels
                    echo '<div id="patientlabels" style="display:block; float:left">';
                    echo '<h3>';
                        echo form_label('Age<color style="color:#F00820;">*</color>', 'patient_age'), '<br/>';
                        echo form_label('Gender<color style="color:#F00820;">*</color>', 'patient_gender'), '<br/>';
                        echo form_label('Weight (kg)<color style="color:#F00820;">*</color>', 'patient_weight'), '<br/>';
                        echo form_label('Height (m)<color style="color:#F00820;">*</color>', 'patient_height'), '<br/>';echo    
                    echo '</h3>';
                    echo '</div>';

form_open('submit/validateform'); // <--------------------THIS Should be before labels!


Messages In This Thread
[solved]$this->input->post() not working? - by El Forum - 07-17-2011, 09:49 AM
[solved]$this->input->post() not working? - by El Forum - 07-17-2011, 10:43 AM
[solved]$this->input->post() not working? - by El Forum - 07-17-2011, 08:14 PM
[solved]$this->input->post() not working? - by El Forum - 07-18-2011, 03:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB