vincemail, som ikke gider at sende...:
<?
// Welcome to VinceMail v1.1!
//This script is free to anyone who wants it
//It was written by Vince Hide - vince@namesweb.co.uk
//It is very simple to use you just need a server
//with sendmail and PHP. You can rename the file
//to anything.php or .php3.
//Change the values below to your desired settings and thats it,
//it should work out of the box so to speak.
//And! Remember kids, domain names are cheaper@namesweb.co.uk
// Enter your email address here
$adminaddress = \"you@email.co.uk\";
// Enter the address of your website here MUST include
http://www. $siteaddress =\"
http://www.yourname.com\"; // Enter your company name or site name here
$sitename = \"Your Name\";
// Enter your page title here
$ptitle = \"Your Page Title\";
// Colour/Style Values for your page - hexy!
//Background Colour
$bgcolor = \"#ececec\";
//Table Border
$bocolor = \"#444444\";
// Font Colour
$fcolor = \"#444444\";
// Link Colour
$lcolor = \"#ff0000\";
// Font Style
$font = \"verdana\";
// Font Size
$fontsize = \"3\";
// Unless you know better I advise that you don\'t touch anything below here!
// Don\'t touch this it grabs the date and time from your server
$date = date(\"m/d/Y H:i:s\");
$vers = \"VinceMail V1.1\";
$traceroute = \"<a href=\\\"
http://www.above.net/cgi-bin/trace?$REMOTE_ADDR\\\">\";if ($REMOTE_ADDR == \"\") $ip = \"<i> no ip </i>\";
else $ip = getHostByAddr($REMOTE_ADDR);
IF ($action==\"\"):
?>
<html>
<head><title><? echo \"$ptitle\"; ?></title>
<body bgcolor=\"<? echo \"$bgcolor\"; ?>\" Link=\"<? echo \"$lcolor\"; ?>\" vLink=\"<? echo \"$lcolor\"; ?>\">
<center>
<FORM name=validation METHOD=POST ACTION=\"<? echo \"$PHP_SELF\"; ?>\" onSubmit=\"return checkbae()\">
<TABLE BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"2\" width=50% bgcolor=\"<? echo \"$bocolor\"; ?>\">
<TR>
<TD VALIGN=\"TOP\">
<center><TABLE BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"3\" width=100% bgcolor=\"<? echo \"$bgcolor\"; ?>\">
<TR>
<TD VALIGN=\"TOP\" colspan=2><font face=\"<? echo \"$font\"; ?>\" size=\"<? echo \"$fontbig\"; ?>\" color=\"<? echo \"$fcolor\"; ?>\"><b><? echo \"$ptitle\"; ?></b></FONT></TD>
</TR>
<TR>
<TD VALIGN=\"TOP\"><font face=\"<? echo \"$font\"; ?>\" size=\"<? echo \"$fontsize\"; ?>\" color=\"<? echo \"$fcolor\"; ?>\"><small>Your First Name:</FONT></TD>
<TD VALIGN=\"TOP\"><INPUT TYPE=\"text\" NAME=\"fname\"></FONT></TD>
</TR>
<TR>
<TD VALIGN=\"TOP\"><font face=\"<? echo \"$font\"; ?>\" size=\"<? echo \"$fontsize\"; ?>\" color=\"<? echo \"$fcolor\"; ?>\"><small>Your Last Name:</FONT></TD>
<TD VALIGN=\"TOP\"><INPUT TYPE=\"text\" NAME=\"lname\"></FONT></TD>
</TR>
<TR>
<TD VALIGN=\"TOP\"><font face=\"<? echo \"$font\"; ?>\" size=\"<? echo \"$fontsize\"; ?>\" color=\"<? echo \"$fcolor\"; ?>\"><small>Your Email:</FONT></TD> <TD VALIGN=\"TOP\"><INPUT TYPE=\"text\" NAME=\"vemail\"></FONT></TD> </TR> <TR> <TD VALIGN=\"TOP\"><font face=\"<? echo \"$font\"; ?>\" size=\"<? echo \"$fontsize\"; ?>\" color=\"<? echo \"$fcolor\"; ?>\"><small>Company Name:</FONT></TD> <TD VALIGN=\"TOP\"><INPUT TYPE=\"text\" NAME=\"cname\"></FONT></TD> </TR> <TR> <TD VALIGN=\"TOP\"><font face=\"<? echo \"$font\"; ?>\" size=\"<? echo \"$fontsize\"; ?>\" color=\"<? echo \"$fcolor\"; ?>\"><small>Tel no:</FONT></TD> <TD VALIGN=\"TOP\"><INPUT TYPE=\"text\" NAME=\"telno\"></FONT></TD> </TR>
<TR><TD VALIGN=\"TOP\" COLSPAN=\"2\"><font face=\"<? echo \"$font\"; ?>\" size=\"<? echo \"$fontsize\"; ?>\" color=\"<? echo \"$fcolor\"; ?>\"><small>Additional Comments:</FONT></TD> </TR>
<TR> <TD VALIGN=\"TOP\" COLSPAN=\"2\"><TEXTAREA NAME=\"comments\" ROWS=\"3\"
COLS=\"30\"></TEXTAREA></FONT></TD> </TR>
<TR><td colspan=2><INPUT TYPE=\"submit\" NAME=\"action\" VALUE=\"Send\">
</FORM></TD>
</TR>
</TABLE> </CENTER></td></TR>
</TABLE>
<script language=\"JavaScript1.2\">
var testresults
function checkemail(){
var str=document.validation.vemail.value
var filter=/^.+@.+\\..{2,3}$/
if (filter.test(str))
testresults=true
else{
alert(\"Please input a valid email address!\")
testresults=false
}
return (testresults)
}
</script>
<script>
function checkbae(){
if (document.layers||document.all)
return checkemail()
else
return true
}
</script>
<?
//This grabs the form data and formats it and sends it in an email to you
exit;
ELSEIF ($action=\"Send\"):
mail(\"$adminaddress\",\"Info Request\", \"FAO: Admin @ $sitename \\n
First Name: $fname
Last Name: $lname
Email: $vemail
Company: $cname
Telephone: $telno\\n
The visitor commented:
------------------------------
$comments
------------------------------
Logged Info :
------------------------------
Mailer: $vers
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date\",\"FROM:$adminaddress\");
//This grabs the form data and sends a confirmation to your visitor
mail(\"$vemail\",\"Thank You for visiting $sitename\", \"Hi $fname,\\n
Thank you for your interest in $sitename!
We will read your comments as soon as we can and act accordingly.
You can expect a response within 48hrs.\\n
Best regards,
$sitename
$siteaddress\",\"FROM:$adminaddress\");
PRINT \"<html><head><title> $ptitle </title><body bgcolor=\\\"$bgcolor\\\" Link=\\\"$lcolor\\\" vLink=\\\"$lcolor\\\"><CENTER>\";
PRINT \"<TABLE BORDER=\\\"0\\\" CELLSPACING=\\\"0\\\" CELLPADDING=\\\"3\\\" width=\\\"60%\\\" bgcolor=\\\"$bocolor\\\">\";
PRINT \"<TR><TD VALIGN=\\\"TOP\\\">\";
PRINT \"<TABLE BORDER=\\\"0\\\" CELLSPACING=\\\"0\\\" CELLPADDING=\\\"3\\\" width=\\\"100%\\\" bgcolor=\\\"$bgcolor\\\">\";
PRINT \"<TR><TD VALIGN=\\\"TOP\\\"><font face=\\\"$font\\\" color=\\\"$fcolor\\\"><small>Hello, $fname.\";
PRINT \"<BR><BR>\";
PRINT \"<font face=\\\"$font\\\" color=\\\"$fcolor\\\">Thank you for your completing our form.<BR><BR>\";
PRINT \"<font face=\\\"$font\\\" color=\\\"$fcolor\\\">We will send information to<b> $vemail </b>, within 48hrs.<br>\";
PRINT \"<font face=\\\"$font\\\" color=\\\"$fcolor\\\">To return to our homepage [<A href=\\\"$siteaddress\\\">Click Here</A>]\";
PRINT \"</CENTER></td></TR></TABLE></td></TR></TABLE>\";
ENDIF;
?>
</body>
</html>