php form processor for wysiwyg version 12.5.1
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/forms.html
http://www.wysiwygwebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/forms.html
http://www.wysiwygwebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
-
-
- Posts: 4
- Joined: Sun Apr 29, 2018 5:05 pm
php form processor for wysiwyg version 12.5.1
When I use the built-in php form processor, the following code appears at the top of my screen above the header.
"; } if (!empty($error)) { $errorcode = file_get_contents($error_url); $replace = "##error##"; $errorcode = str_replace($replace, $error, $errorcode); echo $errorcode; exit; } $internalfields = array ("submit", "reset", "send", "filesize", "formid", "captcha_code", "recaptcha_challenge_field", "recaptcha_response_field", "g-recaptcha-response"); $message .= $eol; $message .= "IP Address : "; $message .= $_SERVER['REMOTE_ADDR']; $message .= $eol; $logdata = ''; foreach ($_POST as $key => $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) { $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; } ?>
What am I doing wrong? This only happens when I use the php form processor.
"; } if (!empty($error)) { $errorcode = file_get_contents($error_url); $replace = "##error##"; $errorcode = str_replace($replace, $error, $errorcode); echo $errorcode; exit; } $internalfields = array ("submit", "reset", "send", "filesize", "formid", "captcha_code", "recaptcha_challenge_field", "recaptcha_response_field", "g-recaptcha-response"); $message .= $eol; $message .= "IP Address : "; $message .= $_SERVER['REMOTE_ADDR']; $message .= $eol; $logdata = ''; foreach ($_POST as $key => $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) { $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; } ?>
What am I doing wrong? This only happens when I use the php form processor.
Re: php form processor for wysiwyg version 12.5.1
This is problem in your configuration.
Please see the FAQ for more details:
https://www.wysiwygwebbuilder.com/forum ... 10&t=32967
Please see the FAQ for more details:
https://www.wysiwygwebbuilder.com/forum ... 10&t=32967
- Navaldesign
-
- Posts: 903
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: php form processor for wysiwyg version 12.5.1
Did you set the page to be .php instead of .html ?
www.dbtechnosystems.com
-
-
- Posts: 4
- Joined: Sun Apr 29, 2018 5:05 pm
- BaconFries
-
- Posts: 5220
- Joined: Thu Aug 16, 2007 7:32 pm
Re: php form processor for wysiwyg version 12.5.1
What is the url to the page? Does your host support php? What type of server are you using? Is it a 'free' server?
-
-
- Posts: 4
- Joined: Sun Apr 29, 2018 5:05 pm
Re: php form processor for wysiwyg version 12.5.1
Magic happened overnight
I no longer see the code. Don't know what I did but everything looks good now. Here is the link to the page anyway file:///C:/Users/Us/AppData/Local/Temp/preview/contactus.php Thank you for working to help me.

- BaconFries
-
- Posts: 5220
- Joined: Thu Aug 16, 2007 7:32 pm
Re: php form processor for wysiwyg version 12.5.1
The link you gave cannot be used by us, this is because it is a reference to where it is located on your PC so only you can view. A url (live on the internet) is usually written like such http://www.yourwebsite.com/contactus.php
-
-
- Posts: 4
- Joined: Sun Apr 29, 2018 5:05 pm
Re: php form processor for wysiwyg version 12.5.1
Oh dear, I knew that. Guess I had another stupid attack. I am in the process of rebuilding the website and this page isn't published yet. However, that code has disappeared. I have had the page set to php since I started building it. Starting to feel like i'm in the Twilight Zone.