Odd code appearing on a page

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
mcruss
 
 
Posts: 38
Joined: Wed Dec 22, 2010 2:20 pm
Location: Texas
Contact:

Odd code appearing on a page

Post by mcruss »

This code does not show up in a preview and can't find it anywhere on the page but....
This is the link: http://www.championsruncondos.com/hoa-board.html

and this is the code:
"; throw new Exception($error); } $message .= $eol; $message .= "IP Address : "; $message .= $_SERVER['REMOTE_ADDR']; $message .= $eol; 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); } catch (Exception $e) { $errorcode = file_get_contents($error_url); $replace = "##error##"; $errorcode = str_replace($replace, $e->getMessage(), $errorcode); echo $errorcode; } exit; } ?>

Russ
User avatar
Pablo
 
Posts: 23537
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Odd code appearing on a page

Post by Pablo »

This is the form script.
You will need to set the page extension to PHP.

Related FAQ:
https://www.wysiwygwebbuilder.com/forum ... hp?t=32967
WWBman
 
 
Posts: 913
Joined: Fri Jan 08, 2010 6:10 pm

Re: Odd code appearing on a page

Post by WWBman »

You have an .html and a .php file version of hoa-board on the server.
You need to delete hoa-board.html and then hoa-board.php will be used.
mcruss
 
 
Posts: 38
Joined: Wed Dec 22, 2010 2:20 pm
Location: Texas
Contact:

Re: Odd code appearing on a page

Post by mcruss »

Thanks! I totally overlooked that!
Post Reply