close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Errror message on contact form

Thread began 8/05/2012 5:30 pm by sandy170299 | Last modified 8/07/2012 12:01 pm by sandy170299 | 613 views | 6 replies

Jason ByrnesWebAssist

it looks like you are adding the contact.php page to the contact_us.php page as an include using require_once() and doing the same with the siteHeader.php page.

this wont work.

the problem is this:
in both the siteHeader.php and contact.php pages there is php code that must come before any HTML output.

the format of the contact_us.php page will be something like this:
<!doctype....>
<html>
<head>
<title>page title</title>
</head>
<body>
other HTML Code
[include the siteHeader.php here]
some other HTML code
[include the contact.php here]
rest of HTML code on the page
....


so by using require_once to include the site header and contact pages as includes, it will be adding php code to the page after HTML output which is causing the issue you are experiencing.


the work around for this is to use Framework builder plugins. Framework builder plugins will automatically strip the php code that is before the doctype tag of a page and add that code above the doctype tag of the page it is being plugged into to prevent this from happening.


I see in the contact page you sent that you have stripped out the doctype, head, title and other tags, you shouldn't do this when using Framework builder plugins. It is a valid technique in cold fusion and ASP to use includes, but not in PHP.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...