debug = false; # print debugging info /*== security defaults ==*/ $form->security = false; # match referers $form->bad_addresses = '205.245.185.21,127.0.0.1,10.1.1.4,host.domain.com'; /*== templates defaults - leave blank to disable ==*/ $form->tpl_thankyou = 'service_newsletter_thanks.tpl'; # thank you page template $form->tpl_mailform = 'service_newsletter_mailform.tpl'; # email template $form->tpl_mailreply = ''; # email reply template /*== other defaults ==*/ $form->mailfrom = 'info@duisburger-filmwoche.de'; # form mail-from $form->rep_subject = 'Duisburger Filmwoche: Anmeldebestaetigung Newsletter'; # reply subject $form->mailto = 'info@duisburger-filmwoche.de'; # form mail-to //$form->mailto = 'info@uwe-ahlgrimm.de'; # form mail-to $form->subject = 'Duisburger Filmwoche: Anmeldung Newsletter'; # email subject $form->details = false; # adds extra details to results /*== file uploads ==*/ $form->uploaddir = ""; # directory to place uploaded files. # leave blank to disable /*== database configuration ==*/ $form->database = false; # enable/disable database storage. # Uses PEAR's DBI class $form->dbtype = "mysql"; # (mysql, pgsql, sybase, ibase, odbc, ..etc) $form->dbname = "BLAH"; # name of the database to use $form->dbhost = "localhost"; # database host name $form->dbuser = ""; # database username (or blank) $form->dbpass = ""; # database password (or blank) $form->dbtable = "anmeldung"; # database table to insert into $form->validate("email","isBlank","Bitte tragen Sie Ihre E-Mail-Adresse ein!"); $form->validate("email","!isEmail","Bitte tragen Sie Ihre E-Mail-Adresse korrekt ein!"); # make certain variable names human readable $form->humanize("email","E-Mail"); $form->humanize("name","Nachname"); $form->humanize("vorname","Vorname"); # execute the form $form->draw('service_newsletter.html'); ?>