Hello, I cerated a PHP for my contact form but when I click to the button send, it doesn't work.I wonder what is wrong...Is there any possibility that you could help me? Thank you, Rebecca animakostudio.com
*I created an HTLM code:* <html><body><font face="Trebuchet MS, Arial, Helvetica, sans-serif" size=2 color="#463C3C";font-family:Helvetica> <form method="post" action="contact.php"> <table bgcolor=#ffffFF align=center> <tr><td colspan=2><strong>FERIENWORKSHOPS</strong></td></tr> <tr><td> <tr><td><font color=red>*</font> Alter:</td><td> <tr><td><input type="checkbox" name="buy" value="für 8-12 Jährige">für 8-12 Jährige<br> <tr><td><input type="checkbox" name="buy" value="Ab 13 Jahre">Ab 13 Jahre<br> <tr><td><font color=red>*</font> Vor-und Zuname</td><td><input size=25 name="Name"></td></tr> <tr><td><font color=red>*</font> E-mail</td><td><input size=25 name="Email"></td></tr> <tr><td>Telefon</td><td><input size=25 name="Phone"></td></tr> <tr><td colspan=2>Wünsche und anmerkungen</td></tr> <tr><td colspan=2 align=right><textarea name="Message" rows=5 cols=50></textarea></td></tr> <tr><td colspan=2 align=right><input type=submit name="send" value="Senden"></td></tr> </form> </body> </html> *And here is mPHP* <?php $to = $_REQUEST['rebecca.kok...@gmail.com'] ; $from = $_REQUEST['Email'] ; $name = $_REQUEST['Name'] ; $headers = "From: $from"; $subject = "Web Contact Data"; $fields = array(); $fields{"Name"} = "Name"; $fields{"buy"} = "für 8-12 Jährige"; $fields{"buy"} = "Ab 13 Jahre"; $fields{"Email"} = "E-mail"; $fields{"Phone"} = "Telefon"; $fields{"Message"} = "Wünsche und anmerkungen"; $body = "We have received the following information:\n\n"; foreach($fields as $a => $b){ $body .= sprintf("%20s: %s\n",$b,$_REQUEST[$a]); } $headers2 = "From: Animakostudio <rebecca.kok...@ygmail.com"; $subject2 = "Thank you for contacting us"; if($from == '') {print "You have not entered an email, please go back and try again";} else { if($name == '') {print "You have not entered a name, please go back and try again";} else { $send = mail($to, $subject, $body, $headers); if($send) {header( "Location: http://www.animakostudio.com/Danke.html" );} else {print "We encountered an error sending your mail, please notify webmas...@animakostudio.com"; } } } ?>