I testing drupal 4.5.2 (and 4.5.0/4.5.1)
After that will send the answer will stored in the survey_response table but not stored the dates of the answer in the survey_fields table.
In the code I found that "$field->name" no value contains.
What can that be due to?
if ($_POST['edit'][$field->name]) {
$responses[$field->title] = $_POST['edit'][$field->name];
db_query("INSERT INTO {survey_fields} (rid, ffid, value) VALUES (%d, %d, '%s')", $rid, $field->ffid, $_POST['edit'][$field->name]);
}
rid and $field->ffid have the right values!
and the mail will send without the values of the answer.
Is this an post/forms.module or php.ini Probleme?
Thanks MN
Comments
Comment #1
(not verified) commentedi have changed
$_POST['edit'][$field->name])
to
$_POST['edit']['field-' . $field->ffid]
and now it works fine.
Comment #2
(not verified) commented