Ive tried everything, even typing the whole thing again from scratch but it doesnt seem to work.
Please help about the error on line 9. Coding below:
1. <?php
2. $name = $_POST['name'];
3. $surname = $_POST['surname'];
4. $company = $_POST['company'];
5. $email = $_POST['email'];
6. $contact = $_POST['contact'];
7. $message = $_POST['message'];
8. $formcontent=" From: $name \n Surname: $surname \n Company: $company \n Contact: $contact \n Message: $message";
9. $recipient = "hannah@afrilek.com<script type="text/javascript"
10. /* <![CDATA[ */
11. (function(){try{var s,a,i,j,r,c,l,b=document.getElementsByTagName("script");l=b[b.length-1].previousSibling;a=l.getAttribute('data-cfemail');if(a){s='';r=parseInt(a.substr(0,2),16);for(j=2;a.length-j;j+=2){c=parseInt(a.substr(j,2),16)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})();
12. /* ]]> */
13. </script>";
14. $subject = $_POST['subject'];
15. $mailheader = "From: $email \r\n";
16. mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
17. echo "Thank You!";