Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 01-14-2010, 05:35 PM   #1
New Member
 
Join Date: Jan 2010
Posts: 10
Default Some PHP issues

Hey there

I need some help with a php contact form that I am trying to implement.
It looks fine when I open the actual "contact-form.php" file, but when I include it in a div (using php include) on my site, I get an error message at the top of the div saying:

"Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /www/zxq.net/a/r/c/arcticknives/htdocs/arcticknives/pages/en/contact_en.php:6) in /www/zxq.net/a/r/c/arcticknives/htdocs/arcticknives/pages/contactform2/contact-form.php on line 2"

I googled this and it seems to be a problem with having a character before "session_start()", but how do I fix this?

My code looks like this:

<div id="mainContent">
<?php include("../contactform2/contact-form.php"); ?>
<!-- end #mainContent -->
</div>

Of course before these lines there are some other stuff generated by dreamweaver and written by me.

So anyone know how I can include this contact form and get it fully working?
Is there a better way than to "include" if I want to get things like contact forms and guestbooks into the main div of my page?
IceDiver is offline   Reply With Quote


Old 02-19-2010, 12:16 PM   #2
New Member
 
Join Date: Feb 2010
Posts: 16
Default

Put the open PHP tag on the first line in your page
<?php ?>
johnta is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:21 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.