![]() |
|
|
|
#1
|
|||
|
|||
|
Code:
<?php
$theiremail = $_REQUEST['email'];
$to = 'youremail@live.com';
$fields = array();
$fields{"email"} = "Email";
$body = "\n\n"; foreach($fields as $a => $b){ $body .= sprintf("%20s: %
s\n",$b,$_REQUEST[$a]); }
$headers2 = "From: $theiremail";
$subject2 = "Someone contacted you";
$autoreply = "".$theiremail."";
if($theiremail == '') {print "You have not entered an email, please go
back and try again";}
else {
$send = mail($to, $subject2, $autoreply, $headers2);
if($send)
{header( "Location: http://www.site.com/thanks" );}
else
{print "We encountered an error, please notify
webmaster@YourCompany.com"; }
}
?>
Last edited by ruletka; 06-28-2011 at 08:52 PM. |
|
#2
|
|||
|
|||
|
cool, i'll have to test it out.. ty :)
__________________
Former owner/designer of a mafia game that i closed down after 7 years. i also do the following: can fix most photos (wallets, 8x10, etc..)... can code in vb 6.0... html and some css... made a couple of Nintendo DS games and working on more... i want to learn php eventually... |
|
#3
|
|||
|
|||
|
didn't work on zymic hosting.. i'll have to try it on another host later today.
__________________
Former owner/designer of a mafia game that i closed down after 7 years. i also do the following: can fix most photos (wallets, 8x10, etc..)... can code in vb 6.0... html and some css... made a couple of Nintendo DS games and working on more... i want to learn php eventually... |
|
#4
|
||||
|
||||
|
Quote:
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
__________________
https://gemnode.com Free Hosting for Mysidia Adopt Sites Just join our forum and request your free hosting account |
![]() |
|
|
What's New? |
What's Hot? |
What's Popular? |