Hi,
I've created a main.php file within a <td></td> an include file, something like this:
<td ><?php require($pagina)?></td>
I'm including a submitform. In this form the following code is on the first line:
<form action="main.php?pagina=mail.php3" method="POST">
As u can see, there is a mail.php file with the folowing code:
<?php
$m="
Naam : $naam
Adres : $adres
Postcode : $postcode
Woonplaats : $plaats
Email : $email
Telefoon : $telefoon
Fax : $fax
Vraagt informatie over:\n";
if ($cb1=="on") $m=$m." Aan- / Verkopen\n";
if ($cb2=="on") $m=$m." Taxaties\n";
if ($cb3=="on") $m=$m." Bedrijfsonroerend goed\n";
if ($cb4=="on") $m=$m." Beheer\n";
if ($cb5=="on") $m=$m." * Hypotheken\n";
if ($opmerking) $m=$m."\n\nOpmerking:\n$opmerking";
if ($email and $naam and $telefoon and $plaats){
mail("info@something.nl","Info aanvraag",$m,"From: $email");
header("location: main.php?pagina=ok.php");}
else{header("location: main.php?pagina=error.php");}
?>
Everything I do returns a warning:
Warning: Cannot add header information - headers already sent by (output started at D:\Projects\Vermeulen\Templates\main.php:4) in D:\Projects\Vermeulen\Templates\mail.php3 on line 30
Can somebody help me?
Jaap