
|
if ((file_exists("$ID_PIC_DIR$abarr[leftpic]")) && ($abarr[leftpic]))
{
$xymas=getimagesize("$ID_PIC_DIR$abarr[leftpic]");
$x=$xymas[0];
$y=$xymas[1];
$width=240;
if ($x>$width)
{
$y=$y*($width/$x);
$x=$width;
}
echo " ";
}
?>
|
 |
|
=$abheader?>
echo $abtext;
$showform=1;
if ($_POST[contact])
{
if (!$_POST[name])
$err.="Please enter your name ";
if ((!$_POST[email]) || (!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,4}$", $_POST[email])))
$err.="Enter a valid email address ";
if (!$_POST[comments])
$err.="Please enter your comments ";
if (!$err)
{
$headers= "From: contact@carmenwyland.com\nContent-type: text/html;";
$msg="Email - $_POST[email]
".$_POST[comments];
$email="info@carmenwyland.com";
mail($email,"Message from contact form",$msg,$headers);
$showform=0;
echo " Thank you for contacting us.";
}
}
?>
=$err?>
if ($showform)
{
?>
}
?>
|