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

[eluser]CroNiX[/eluser]
This is part of your problem:
Code:
$data = array(
  'locationid' => db_clean($_POST['locationid']),
  'dates' => db_clean($_POST['TheDates[0]']),
  'dates' => db_clean($_POST['TheDates[1]']),
  'dates' => db_clean($_POST['TheDates[2]']),
  'dates' => db_clean($_POST['TheDates[3]'])
);

if you check $data, it will probably only contain:
Code:
$data = array(
  'locationid' => db_clean($_POST['locationid']),
  'dates' => db_clean($_POST['TheDates[3]'])
);
(the last date) since you are using the same key, 'dates' for each one.

You also have no where() statement in your update(), so it will update all. You will need a unique identifier for your where, like puid instead of just locationid (since there are many ids with the same locationid).


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