. */ include("./include/include.php"); page_header(); if( $_SERVER["REQUEST_METHOD"]=="POST" ) { $Name=get_var('name'); $Email=get_var('email'); $Subject=get_var('subject'); $Message=get_var('message'); $error=false; if( strlen($Name)<3 ) { echoln("Please provide your name.
"); $error=true; } if( strlen($Email)<3 OR !check_email($Email) ) { echoln("Please provide a valid e-mail address.
"); $error=true; } if( strlen($Subject)<3 ) { echoln("Please provide a subject.
"); $error=true; } if( strlen($Message)<16 ) { echoln("Please provide a message.
"); $error=true; } if( $error ) { echoln("

"); }else { $To = WEBMASTER_MAIL; $Subject="[AEGEE Photo Page] ".$Subject; $Message.="\n\n\n============================================"; $Message.="\nThis mail was sent from the AEGEE photo page"; $Headers="From: \"".$Name."\" <".$Email.">"; if( mail($To, $Subject, $Message, $Headers) ) { // ok echoln("Your mail has been sent to the webmaster.

"); $Name=""; $Email=""; $Subject=""; $Message=""; }else { // failed echoln("Failed sending your mail. Please try again later.

"); } } } echoln("

"); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln(" "); echoln("
Send an e-mail to the webmaster
Your name:
Your e-mail:
Subject:
Message:

 
"); echoln("
"); page_footer(); ?>