diff options
Diffstat (limited to 'sendOrd.php')
-rw-r--r-- | sendOrd.php | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/sendOrd.php b/sendOrd.php new file mode 100644 index 0000000..20124b4 --- /dev/null +++ b/sendOrd.php @@ -0,0 +1,72 @@ +<!-- Denne siden hører hjemme på http://www.steinerinstituttet.no --> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> +<meta http-equiv="Content-Language" content="NO"> +<meta name="distribution" content="Global"> +<meta name="robots" content="FOLLOW,INDEX"> +<meta name="author" content="Axel Bojer"> +<meta name="keywords" content="ord,stavekontroll,norsk,bokmål,nynorsk,no.speling.org"> +<meta name="description" content="Send inn nye ord til stavekontrollen"> +<meta name="abstract" content="Send inn nye ord til stavekontrollen"> + +<title>Bekreftelse av innsendte ord</title> + <link href="sendOrd.css" rel="stylesheet" type="text/css"> + +</head> +<body class="tekst"> + +<?php + +$error = ''; + +// Sjekk at et valg er tatt +// if($HTTP_POST_VARS['valg1'] == '(Bruk pila til høyre)') +// { +// $error .= "Du har glemt å velge ...\n"; +// } + +// Sjekk at all nødvendig kontaktinformasjon er oppgitt +if($HTTP_POST_VARS['status'] == '' || $HTTP_POST_VARS['e-post'] == '') +{ + $error .= "Du må oppgi både navn og e-post.\n"; +} + + +// Hvis skjemaet er fylt ut feil, må skjemaet fylles ut på nytt +if($error != '') +{ + $error .= "Bruk tilbakeknappen i nettleseren for å rette på påmeldinga.\n"; + print "<pre>" . $error . "</pre>"; + exit(); +} + +?> + +<p>Takk! Påmeldinga til «<?php echo $HTTP_POST_VARS['kursnavn'] ?>» er sendt.<br><br> +Du får straks en kopi av bestillinga til den e-postadressen du oppga.<br> + +<?php + +$body .= " +WORD: {$HTTP_POST_VARS['ord']} +if($HTTP_POST_VARS['status']) + $body .= "STATUS: +\n"; +elif + $body .= "STATUS: -\n"; +else + $body .= "STATUS: ?\n"; +EDITOR: {$HTTP_POST_VARS['navn']} {$HTTP_POST_VARS['epost']} +"; + +/*if($HTTP_POST_VARS['beskjeder']) + $body .= "\nBeskjeder:\n{$HTTP_POST_VARS['beskjeder']}\n\n";*/ + +mail($to, $subject, $body); +mail($HTTP_POST_VARS['epost'], $subject, $body); +//print "<pre>" . $body . "</pre>"; +?> + +</body> +</html> |