stworzyłem sobie prosty formularz. Wygląd w css. Wszystko super. Proszę tylko o pomoc w jednej kwestii.
Nie pobiera mi zawartości formularza. Przychodzi pusty email . Poniżej skrypty. Z góry dzięki.
pobierz, plaintext <form action="contact.php" method="post" id="ContactForm"> <div> <div class="wrapper"> <input name=”cf_name” type="text"/> </div> <br/> <div class="wrapper"> <input name=”cf_email” type="text"/> </div> <div class="textarea_box"> </div> <div class="wrapper"> </div> </div> </form>
<?php $field_name = $_POST['cf_name']; $field_email = $_POST['cf_email']; $field_message = $_POST['cf_message']; $mail_to = 'kowalski@onet.pl'; $subject = 'Wiadomość ze strony'.$field_name; $body_message = 'From: '.$field_name."\n"; $body_message .= 'E-mail: '.$field_email."\n"; $body_message .= 'Message: '.$field_message; $headers = 'From: '.$field_email."\r\n"; $headers .= 'Reply-To: '.$field_email."\r\n"; if ($mail_status) { ?> <script language="javascript" type="text/javascript"> window.location = 'index.html#!/page_kontakt'; </script> <?php } else { ?> <script language="javascript" type="text/javascript"> window.location = 'index.html#!/page_kontakt'; </script> <?php } ?>