Revision 317
Added by stefan over 19 years ago
| add.php | ||
|---|---|---|
| 27 | 27 |
The Website Baker Project would like to thank Rudolph Lartey <www.carbonect.com> |
| 28 | 28 |
for his contributions to this module - adding extra field types |
| 29 | 29 |
*/ |
| 30 |
|
|
| 31 |
// Insert an extra rows into the database
|
|
| 32 |
$header = '<table cellpadding=\"2\" cellspacing=\"0\" border=\"0\" width=\"100%\">';
|
|
| 30 |
|
|
| 31 |
// Insert an extra rows into the database |
|
| 32 |
$header = '<table cellpadding=\"2\" cellspacing=\"0\" border=\"0\" width=\"100%\">'; |
|
| 33 | 33 |
$field_loop = '<tr><td class=\"field_title\">{TITLE}{REQUIRED}:</td><td>{FIELD}</td></tr>';
|
| 34 | 34 |
$footer = '<tr><td> </td> |
| 35 | 35 |
<td> |
| 36 | 36 |
<input type=\"submit\" name=\"submit\" value=\"Submit Form\" /> |
| 37 | 37 |
</td> |
| 38 | 38 |
</tr> |
| 39 |
</table>';
|
|
| 40 |
$email_to = $admin->get_email();
|
|
| 41 |
$email_from = '';
|
|
| 42 |
$email_subject = 'Results from form on website...';
|
|
| 39 |
</table>'; |
|
| 40 |
$email_to = $admin->get_email(); |
|
| 41 |
$email_from = ''; |
|
| 42 |
$email_subject = 'Results from form on website...'; |
|
| 43 | 43 |
$success_message = 'Thank-you.'; |
| 44 | 44 |
$max_submissions = 50; |
| 45 | 45 |
$stored_submissions = 100; |
| ... | ... | |
| 48 | 48 |
} else {
|
| 49 | 49 |
$use_captcha = false; |
| 50 | 50 |
} |
| 51 |
$database->query("INSERT INTO ".TABLE_PREFIX."mod_form_settings (page_id,section_id,header,field_loop,footer,email_to,email_from,email_subject,success_message,max_submissions,stored_submissions,use_captcha) VALUES ('$page_id','$section_id','$header','$field_loop','$footer','$email_to','$email_from','$email_subject','$success_message','$max_submissions','$stored_submissions','$use_captcha')");
|
|
| 52 |
|
|
| 51 |
$database->query("INSERT INTO ".TABLE_PREFIX."mod_form_settings (page_id,section_id,header,field_loop,footer,email_to,email_from,email_subject,success_message,max_submissions,stored_submissions,use_captcha) VALUES ('$page_id','$section_id','$header','$field_loop','$footer','$email_to','$email_from','$email_subject','$success_message','$max_submissions','$stored_submissions','$use_captcha')");
|
|
| 52 |
|
|
| 53 | 53 |
?> |
Also available in: Unified diff
Changed all line endings to Unix stlye