Some PHP issues

IceDiver

New Member
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?
 
Top