Trouble with php contact form

Issues related to forms.
Post Reply
brandariy
Posts: 27
Joined: Sun Oct 12, 2014 2:13 pm

Trouble with php contact form

Post by brandariy » Sun Oct 12, 2014 2:55 pm

What am I doing wrong

Advice please? what I'm doing wrong. The problem is that if the page on which there is a feedback form with php processing, in the header i have some symbols:

$value) { if (!in_array(strtolower($key), $internalfields)) { if (!is_array($value)) { $message .= ucwords(str_replace("_", " ", $key)) . " : " . $value . $eol; } else { $message .= ucwords(str_replace("_", " ", $key)) . " : " . implode(",", $value) . $eol; } } } $body = 'This is a multi-part message in MIME format.'.$eol.$eol; $body .= '--'.$boundary.$eol; $body .= 'Content-Type: text/plain; charset=ISO-8859-1'.$eol; $body .= 'Content-Transfer-Encoding: 8bit'.$eol; $body .= $eol.stripslashes($message).$eol; if (!empty($_FILES)) { foreach ($_FILES as $key => $value) { if ($_FILES[$key]['error'] == 0 && $_FILES[$key]['size'] <= $max_filesize) { $body .= '--'.$boundary.$eol; $body .= 'Content-Type: '.$_FILES[$key]['type'].'; name='.$_FILES[$key]['name'].$eol; $body .= 'Content-Transfer-Encoding: base64'.$eol; $body .= 'Content-Disposition: attachment; filename='.$_FILES[$key]['name'].$eol; $body .= $eol.chunk_split(base64_encode(file_get_contents($_FILES[$key]['tmp_name']))).$eol; } } } $body .= '--'.$boundary.'--'.$eol; if ($mailto != '') { mail($mailto, $subject, $body, $header); } header('Location: '.$success_url); exit; } ?>

Please tell me what to do. Looks like something in the settings, although I do miss all the instructions

User avatar
Pablo
Site Admin
Posts: 2653
Joined: Mon Feb 13, 2006 7:00 am
Location: Europe
Contact:

Re: Trouble with php contact form

Post by Pablo » Sun Oct 12, 2014 3:41 pm

Did you set the page file extension to php?
Did you publish the page to your website?

See also the Form FAQ:
http://www.quickandeasywebbuilder.com/f ... 10&t=32967

brandariy
Posts: 27
Joined: Sun Oct 12, 2014 2:13 pm

Re: Trouble with php contact form

Post by brandariy » Sun Oct 12, 2014 3:49 pm

thanks i am allready fix it problem& it is realy php

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests