html5 - String / Array error on PHP form -
i'm finishing project can't seem see went wrong on php form. me correct yet i'm getting error. warning: mail() expects parameter 4 string, array given in /customers/f/a/b/webpx.be/httpd.www/sendemail.php on line 15 my php form: <?php $name = @trim(stripslashes($_post['name'])); $email = @trim(stripslashes($_post['email'])); $message = @trim(stripslashes($_post['message'])); $to = 'email@email.com';//replace email $headers = array(); $headers[] = "mime-version: 1.0"; $headers[] = "content-type: text/plain; charset=iso-8859-1"; $headers[] = "from: {$name} <{$from}>"; $headers[] = "reply-to: <{$from}>"; $headers[] = "subject: {$subject}"; $headers[] = "x-mailer: php/".phpversion(); mail($to, $subject, $message, $headers); die; ?> <?php if ($_post['submit']) { if (mail($to, $subject, $message, $headers)) { ...