Thanx a lot for the help I realy do appreciate it!🆒
Here it is, line 29 of the code would correspond to the line begining with
if($name != '')
Parse error: parse error, unexpected T_IF in /web/comdocs/www.prodg.cc/docs/test/sendmail.php on line 29
Here is the entire code again, I created a test page, based on the above ...
//======== Receivers address =============
$toaddress = "manuel@prodg.cc";
//======== Subject Line =================
$subject = "Inquiry from the Script Test site";
//========Mail Content=================
$mailcontent = "Inquiry from the Script Test site \n"
if($name !="")
{
."Name: ".$name."\n"
}
else{}
if($surname != '')
{
."Surname: ".$surname."\n"
}
else{}
if($email != '')
{
."E-Mail: ".$email."\n";
}
else{;}
$fromaddress = "From the Script Test site";
mail($toaddress, $subject, $mailcontent, $fromaddress);
Sorry to be a pain, so far I just included the fields that were not completed. I find it a rather crude solution and would just like it to look a bit more refined. If you know what I mean.