Project

General

Profile

« Previous | Next » 

Revision 638

Added by thorn almost 17 years ago

Allow a user-supplied From-Name in form-settings for email und success-email.

View differences:

add.php
39 39
</table>';
40 40
$email_to = $admin->get_email();
41 41
$email_from = '';
42
$email_fromname = '';
42 43
$email_subject = 'Results from form on website...';
43 44
$success_page = 'none';
44 45
$success_email_to = '';
45 46
$success_email_from = $admin->get_email();
47
$success_email_fromname = '';
46 48
$success_email_text = 'Thank you for submitting your form on '.WEBSITE_TITLE;
47 49
$success_email_text = addslashes($success_email_text);
48 50
$success_email_subject = 'You have submitted a form';
49 51
$max_submissions = 50;
50 52
$stored_submissions = 50;
51 53
$use_captcha = true;
52
$database->query("INSERT INTO ".TABLE_PREFIX."mod_form_settings (page_id,section_id,header,field_loop,footer,email_to,email_from,email_subject,success_page,success_email_to,success_email_from,success_email_text,success_email_subject,max_submissions,stored_submissions,use_captcha) VALUES ('$page_id','$section_id','$header','$field_loop','$footer','$email_to','$email_from','$email_subject','$success_page','$success_email_to','$success_email_from','$success_email_text','$success_email_subject','$max_submissions','$stored_submissions','$use_captcha')");
54
$database->query("INSERT INTO ".TABLE_PREFIX."mod_form_settings (page_id,section_id,header,field_loop,footer,email_to,email_from,email_fromname,email_subject,success_page,success_email_to,success_email_from,success_email_fromname,success_email_text,success_email_subject,max_submissions,stored_submissions,use_captcha) VALUES ('$page_id','$section_id','$header','$field_loop','$footer','$email_to','$email_from','$email_fromname','$email_subject','$success_page','$success_email_to','$success_email_from','$success_email_fromname','$success_email_text','$success_email_subject','$max_submissions','$stored_submissions','$use_captcha')");
53 55

  
54 56
?>

Also available in: Unified diff