Re: email from forms
not sure if this is what you need? but here goes
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<TITLE>action</TITLE>
<META name="GENERATOR" content="Created by BlueVoda">
<SCRIPT type="text/javascript">
<!--
function SwapImage()
{
var doc=document, args=arguments;
doc.$imgSwaps = new Array();
for(var i=2; i<args.length; i+=2)
{
var elem=FindObject(args[i]);
if(elem)
{
doc.$imgSwaps[doc.$imgSwaps.length]=elem;
elem.$src=elem.src;
elem.src=args[i+1];
}
}
}
function FindObject(id, doc)
{
var child, elem;
if(!doc)
doc=document;
if(doc.getElementById)
elem=doc.getElementById(id);
else
if(doc.layers)
child=doc.layers;
else
if(doc.all)
elem=doc.all[id];
if(elem)
return elem;
if(doc.id==id || doc.name==id)
return doc;
if(doc.childNodes)
child=doc.childNodes;
if(child)
{
for(var i=0; i<child.length; i++)
{
elem=FindObject(id,child[i]);
if(elem)
return elem;
}
}
var frm=doc.forms;
if(frm)
{
for(var i=0; i<frm.length; i++)
{
var elems=frm[i].elements;
for(var j=0; j<elems.length; j++)
{
elem=FindObject(id,elems[i]);
if(elem) return elem;
}
}
}
return null;
}
// -->
</SCRIPT>
</HEAD>
<BODY bgcolor="#FFFFDF" text="#000000" <?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "dantinaproperties@dantinaproperties.com";
$mailsubj = "request more information";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
>
<DIV style="position:absolute;left:85px;top:23px;width: 749px;height:73px;background-color:#FFFFC4;z-index:0" align="center">
<FONT style="font-size:64px;BACKGROUND-COLOR:#FFFFFF" color="#FFAD5B" face="Abadi MT Condensed Extra Bold">www.Dantinaproperties.com</FONT>
</DIV>
<DIV style="position:absolute;left:100px;top:134px;widt h:134px;height:310px;z-index:1" align="center">
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR>
<TD align="left" valign="top" width="134" height="22"><A href="http://www.dantinaproperties.com/apartments.html"><IMG id="bv01281" src="bv01281.gif" alt="http://www.dantinaproperties.com/apartments.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01281','bv01281_over .gif')" onmouseout="SwapImage(0,0,'bv01281','bv01281.gif') "></A></TD>
</TR>
<TR><TD height="50"></TD></TR><TR>
<TD align="left" valign="top" width="134" height="22"><A href="http://www.dantinaproperties.com/villas.html"><IMG id="bv01282" src="bv01282.gif" alt="http://www.dantinaproperties.com/villas.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01282','bv01282_over .gif')" onmouseout="SwapImage(0,0,'bv01282','bv01282.gif') "></A></TD>
</TR>
<TR><TD height="50"></TD></TR><TR>
<TD align="left" valign="top" width="134" height="22"><A href="http://www.dantinaproperties.com/duplex.html"><IMG id="bv01283" src="bv01283.gif" alt="http://www.dantinaproperties.com/duplex.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01283','bv01283_over .gif')" onmouseout="SwapImage(0,0,'bv01283','bv01283.gif') "></A></TD>
</TR>
<TR><TD height="50"></TD></TR><TR>
<TD align="left" valign="top" width="134" height="22"><A href="http://www.dantinaproperties.com/bungalows.html"><IMG id="bv01284" src="bv01284.gif" alt="http://www.dantinaproperties.com/bungalows.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01284','bv01284_over .gif')" onmouseout="SwapImage(0,0,'bv01284','bv01284.gif') "></A></TD>
</TR>
<TR><TD height="50"></TD></TR><TR>
<TD align="left" valign="top" width="134" height="22"><A href="http://www.dantinaproperties.com/fincas.html"><IMG id="bv01285" src="bv01285.gif" alt="http://www.dantinaproperties.com/fincas.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01285','bv01285_over .gif')" onmouseout="SwapImage(0,0,'bv01285','bv01285.gif') "></A></TD>
</TR>
</TABLE>
</DIV>
<DIV style="position:absolute;left:334px;top:175px;widt h:473px;height:162px;z-index:2" align="center">
<FONT style="font-size:48px" color="#FF6820" face="Abadi MT Condensed Extra Bold">Thank you for your request we will replie as soon as possible.</FONT>
</DIV>
</BODY>
</HTML>
not sure if this is what you need? but here goes
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<TITLE>action</TITLE>
<META name="GENERATOR" content="Created by BlueVoda">
<SCRIPT type="text/javascript">
<!--
function SwapImage()
{
var doc=document, args=arguments;
doc.$imgSwaps = new Array();
for(var i=2; i<args.length; i+=2)
{
var elem=FindObject(args[i]);
if(elem)
{
doc.$imgSwaps[doc.$imgSwaps.length]=elem;
elem.$src=elem.src;
elem.src=args[i+1];
}
}
}
function FindObject(id, doc)
{
var child, elem;
if(!doc)
doc=document;
if(doc.getElementById)
elem=doc.getElementById(id);
else
if(doc.layers)
child=doc.layers;
else
if(doc.all)
elem=doc.all[id];
if(elem)
return elem;
if(doc.id==id || doc.name==id)
return doc;
if(doc.childNodes)
child=doc.childNodes;
if(child)
{
for(var i=0; i<child.length; i++)
{
elem=FindObject(id,child[i]);
if(elem)
return elem;
}
}
var frm=doc.forms;
if(frm)
{
for(var i=0; i<frm.length; i++)
{
var elems=frm[i].elements;
for(var j=0; j<elems.length; j++)
{
elem=FindObject(id,elems[i]);
if(elem) return elem;
}
}
}
return null;
}
// -->
</SCRIPT>
</HEAD>
<BODY bgcolor="#FFFFDF" text="#000000" <?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "dantinaproperties@dantinaproperties.com";
$mailsubj = "request more information";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
>
<DIV style="position:absolute;left:85px;top:23px;width: 749px;height:73px;background-color:#FFFFC4;z-index:0" align="center">
<FONT style="font-size:64px;BACKGROUND-COLOR:#FFFFFF" color="#FFAD5B" face="Abadi MT Condensed Extra Bold">www.Dantinaproperties.com</FONT>
</DIV>
<DIV style="position:absolute;left:100px;top:134px;widt h:134px;height:310px;z-index:1" align="center">
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR>
<TD align="left" valign="top" width="134" height="22"><A href="http://www.dantinaproperties.com/apartments.html"><IMG id="bv01281" src="bv01281.gif" alt="http://www.dantinaproperties.com/apartments.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01281','bv01281_over .gif')" onmouseout="SwapImage(0,0,'bv01281','bv01281.gif') "></A></TD>
</TR>
<TR><TD height="50"></TD></TR><TR>
<TD align="left" valign="top" width="134" height="22"><A href="http://www.dantinaproperties.com/villas.html"><IMG id="bv01282" src="bv01282.gif" alt="http://www.dantinaproperties.com/villas.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01282','bv01282_over .gif')" onmouseout="SwapImage(0,0,'bv01282','bv01282.gif') "></A></TD>
</TR>
<TR><TD height="50"></TD></TR><TR>
<TD align="left" valign="top" width="134" height="22"><A href="http://www.dantinaproperties.com/duplex.html"><IMG id="bv01283" src="bv01283.gif" alt="http://www.dantinaproperties.com/duplex.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01283','bv01283_over .gif')" onmouseout="SwapImage(0,0,'bv01283','bv01283.gif') "></A></TD>
</TR>
<TR><TD height="50"></TD></TR><TR>
<TD align="left" valign="top" width="134" height="22"><A href="http://www.dantinaproperties.com/bungalows.html"><IMG id="bv01284" src="bv01284.gif" alt="http://www.dantinaproperties.com/bungalows.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01284','bv01284_over .gif')" onmouseout="SwapImage(0,0,'bv01284','bv01284.gif') "></A></TD>
</TR>
<TR><TD height="50"></TD></TR><TR>
<TD align="left" valign="top" width="134" height="22"><A href="http://www.dantinaproperties.com/fincas.html"><IMG id="bv01285" src="bv01285.gif" alt="http://www.dantinaproperties.com/fincas.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01285','bv01285_over .gif')" onmouseout="SwapImage(0,0,'bv01285','bv01285.gif') "></A></TD>
</TR>
</TABLE>
</DIV>
<DIV style="position:absolute;left:334px;top:175px;widt h:473px;height:162px;z-index:2" align="center">
<FONT style="font-size:48px" color="#FF6820" face="Abadi MT Condensed Extra Bold">Thank you for your request we will replie as soon as possible.</FONT>
</DIV>
</BODY>
</HTML>
Comment