Welcome Guest, Not a member yet? Register   Sign In
Need Help With Form Submission
#2

[eluser]CroNiX[/eluser]
Where are you setting the form element with the name of 'locationid'?
It looks like:
Code:
$data = array('name'=>$item['location'], 'size'=>20,'value' => $item['location']); echo form_input($data);
should be
Code:
$data = array('name'=>'locationid', 'size'=>20,'value' => $item['location']); echo form_input($data);
??

Are you sure $_POST['locationid'] is an array? It seems it would be a single integer, since it's an id to a particular location.

In your Updatelocation() method, you are overriding the 'dates' key, so the final array will only contain the last date. You also don't define $locationid, but use it in your where(). You also enclose '$theDates[0]' in single quotes, which will be taken literally and not a variable.


Messages In This Thread
Need Help With Form Submission - by El Forum - 03-19-2012, 11:43 AM
Need Help With Form Submission - by El Forum - 03-19-2012, 12:56 PM
Need Help With Form Submission - by El Forum - 03-19-2012, 03:00 PM
Need Help With Form Submission - by El Forum - 03-19-2012, 03:33 PM
Need Help With Form Submission - by El Forum - 03-19-2012, 03:40 PM
Need Help With Form Submission - by El Forum - 03-19-2012, 04:03 PM
Need Help With Form Submission - by El Forum - 03-19-2012, 04:15 PM
Need Help With Form Submission - by El Forum - 03-19-2012, 04:44 PM
Need Help With Form Submission - by El Forum - 03-20-2012, 12:26 PM
Need Help With Form Submission - by El Forum - 03-20-2012, 12:48 PM
Need Help With Form Submission - by El Forum - 03-20-2012, 02:06 PM
Need Help With Form Submission - by El Forum - 03-20-2012, 02:15 PM
Need Help With Form Submission - by El Forum - 03-21-2012, 01:30 PM
Need Help With Form Submission - by El Forum - 03-21-2012, 03:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB