Adbem
02-03-2010, 03:41 PM
That is the php part of my contact script
<?php
$alertall = "you need to fill in all fields";
if ($_POST['name'] == "")
echo"<? $alertall ?>";
if ($_POST['email'] == "")
echo"<? $alertall ?>";
if ($_POST['title'] == "")
echo"<? $alertall ?>";
if ($_POST['text'] == "")
echo"<? $alertall ?>";
else {
mail ('kontakt@mywebsite.com', '$title', '$text');
echo"it was send correctly, go back on <a href=\"http://www.mywebsite.com\">main page</a><br /> or to <a href=\"http://www.mywebsite.com\">cobntact formular</a>";
} or die { "Impossible to send a formular"; }
?>
The problem is that it shows an error T_LOGICAL_OR? What can be wrong?
<?php
$alertall = "you need to fill in all fields";
if ($_POST['name'] == "")
echo"<? $alertall ?>";
if ($_POST['email'] == "")
echo"<? $alertall ?>";
if ($_POST['title'] == "")
echo"<? $alertall ?>";
if ($_POST['text'] == "")
echo"<? $alertall ?>";
else {
mail ('kontakt@mywebsite.com', '$title', '$text');
echo"it was send correctly, go back on <a href=\"http://www.mywebsite.com\">main page</a><br /> or to <a href=\"http://www.mywebsite.com\">cobntact formular</a>";
} or die { "Impossible to send a formular"; }
?>
The problem is that it shows an error T_LOGICAL_OR? What can be wrong?