Welcome Guest, Not a member yet? Register   Sign In
Help Submit Button in codeigniter forms.
#2

[eluser]Dunrobin[/eluser]
I think it's because of your code here:

Code:
<?php echo form_submit('submit')?>

I believe it should be:

Code:
<?php echo form_submit('submit', 'Submit')?>

You left out the 2nd parameter.

UPDATE:

Forget that. If the form submitted the 2nd parameter probably doesn't matter. I looked at your insert code again and realized that you are passing the $_POST array, which would include the name of the submit button. You should probably make a $data array from the $_POST values first and pass that along in your insert.


Messages In This Thread
Help Submit Button in codeigniter forms. - by El Forum - 03-21-2009, 08:25 PM
Help Submit Button in codeigniter forms. - by El Forum - 03-21-2009, 09:35 PM
Help Submit Button in codeigniter forms. - by El Forum - 03-22-2009, 01:48 AM
Help Submit Button in codeigniter forms. - by El Forum - 03-22-2009, 02:04 AM
Help Submit Button in codeigniter forms. - by El Forum - 02-20-2012, 07:54 PM
Help Submit Button in codeigniter forms. - by El Forum - 02-21-2012, 09:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB