Contact Us

You can send us your comments or queries by filling out and submitting the contact form below.

You must set-up a valid (to) email address before this contact page will work.

'; } if (isset($_POST['contact_submitted'])) { $return = "\n"; $youremail = trim(htmlspecialchars($_POST['your_email'])); $firstname = stripslashes(strip_tags($_POST['first_name'])); $lastname = stripslashes(strip_tags($_POST['last_name'])); $yourname = $firstname." ".$lastname; $yourcomment = stripslashes(strip_tags($_POST['your_comment'])); $phoneno = stripslashes(strip_tags($_POST['phone_no'])); $yourwebpage = stripslashes(strip_tags($_POST['your_webpage'])); $contact_name = "Name: ".$yourname; $remotehost = $_SERVER['REMOTE_HOST']; $user_agent = $_SERVER['HTTP_USER_AGENT']; $message_text = "Phone: ".$phoneno."\n"."Webpage: ".$yourwebpage."\n"."Remote Host:".$remotehost."\n"."Browser".$user_agent."\n"."Comment: ".$yourcomment."\n"; $user_answer = trim(htmlspecialchars($_POST['user_answer'])); $answer = trim(htmlspecialchars($_POST['answer'])); $message = $contact_name . $return . $message_text; $headers = "From: ".$youremail; if (email_is_valid($youremail) && !eregi("\r",$youremail) && !eregi("\n",$youremail) && $yourname != "" && $yourcomment != "" && substr(md5($user_answer),5,10) === $answer) { mail($to,$subject,$message,$headers); $firstname = ''; $lastname = ''; $phoneno = ''; $youremail = ''; $yourwebpage = ''; $yourcomment = ''; echo '

'.$contact_submitted.'

'; } else echo '

Please enter your name, a valid email address, your message and the answer to the simple maths question before sending your message.

'; } $number_1 = rand(1, 9); $number_2 = rand(1, 9); $answer = substr(md5($number_1+$number_2),5,10); ?>
First Name:
Last Name:
Your Phone:
Your Email:
Webpage:
Comments/
Queries:

To help prevent spam, please enter the answer to this question:

+ = ?

If you have a problem using this form please email us at info (at) mathdox (dot) org

Address:

Hans Cuypers
Discrete Algebra and Geometry
Department of Mathematics and Computing Science
Eindhoven University of Technology
P.O. Box 513
5600 MB, Eindhoven
The Netherlands