From 95972f32da837e76520d99eee8d57893abd7bc5b Mon Sep 17 00:00:00 2001 From: Sjur Hernes Date: Wed, 25 Jan 2012 19:42:56 +0100 Subject: [PATCH] =?UTF-8?q?tror=20fix=20av=20r=C3=B8d=20skrift=20og=20best?= =?UTF-8?q?illingsbekreftelse=20(kopi=20av=20mail=20til=20designere=20til?= =?UTF-8?q?=20bestiller)=20er=20fikset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/style.css | 6 ++++++ index.php | 2 +- php/function.php | 12 ++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/css/style.css b/css/style.css index 022e732..ed878a4 100644 --- a/css/style.css +++ b/css/style.css @@ -52,3 +52,9 @@ tr.critical td { background-color:red; } + +.smallred +{ + font-color:red; + font-size:8px; +} \ No newline at end of file diff --git a/index.php b/index.php index 82c6b2e..b6d15fb 100644 --- a/index.php +++ b/index.php @@ -52,7 +52,7 @@ include 'php/header.php';

Frist

-
Fristen må være tidligst to uker etter bestilling
+
Fristen må være tidligst to uker etter bestilngli. Vi vet at dere har det travelt, men det har vi også. Vi trenger 2 uker på alle bestilling!er
diff --git a/php/function.php b/php/function.php index def0a26..81f0ce4 100644 --- a/php/function.php +++ b/php/function.php @@ -122,6 +122,18 @@ function postForm() $message .= "\n"; $message .= $_POST['innhold']; + if(!mail($to, $subject, $message)) + die("Error sending mail"); + + // kopi til bestiller + $to = $_POST('kontakt_email'); + $subject = 'Bestilling fra ' . $_POST['hvem'] . ', BESTILLINGSBEKREFTELSE'; + $message = "Frist :" . $_POST['frist'] . "\n"; + $message .= 'Kontaktperson :' . $_POST['kontakt_navn'] . "\n"; + $message .= 'Mer info : http://www.studentersamfundet.no/bestilling/inside.php?view='.mysql_insert_id() . "\n"; + $message .= "\n"; + $message .= $_POST['innhold']; + if(!mail($to, $subject, $message)) die("Error sending mail");