/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Copyright (C) 2004-2005 SunFrogServices.com. All rights reserved. PHPeasy-form version 2.0 Released 2005-05-16 This file is part of PHPeasy-form. PHPeasy-form is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. PHPeasy-form is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with PHPeasy-form; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Contact SunFrogServices.com at: http://www.SunFrogServices.com ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ // write form results to file $fp = fopen("form-results.txt", "a"); fwrite($fp, $_POST['name'] . "," . $_POST['telephone'] . "," . $_POST['email'] . "," . $_POST['products'] . "," . $_POST['info'] . "," . $_POST['message'] . "," . date("M-d-Y") . "\n"); fclose($fp); // send form results through email $recipient = "info@dairyland.ie"; $subject = "Web Form Results - from dairyland"; $forminfo = ($_POST['name'] . "\r" . $_POST['telephone'] . "\r" . $_POST['email'] . "\r" . $_POST['products'] . "\r" . $_POST['info'] . "\r" . $_POST['message'] . "\r" . date("M-d-Y") . "\r\n\n"); $formsend = mail("$recipient", "$subject", "$forminfo", "From: info@dairyland.ie"); ?>
|