Welcome Guest, Not a member yet? Register   Sign In
Form Submit issue
#1

[eluser]esenes[/eluser]
I have a form in my view file with two input fields and a submit button,if i click on the submit button how would i check it in controller...

i used the following

if(isset($this->input->post('submit')))
{

}
but i get the following error...

Fatal error: Can't use method return value in write context in D:\Projects\htdocs\my_ci\application\controllers\form_con.php on line 12

how would i use form submission in codeigniter..help me..
#2

[eluser]InsiteFX[/eluser]
Read the CodeIgniter User Guide on the form_validation and form_helper

InsiteFX
#3

[eluser]e-man[/eluser]
Pretty poor as an answer this.
Check http://ellislab.com/forums/viewthread/182236/ for a better one, it's a common mistake if you're new to CI.




Theme © iAndrew 2016 - Forum software by © MyBB