Domain Discussion Board

Go Back   Domain Discussion Board > Web Hosting & Web Design > Scripts

 
Reply
 
LinkBack Thread Tools Display Modes
Futurescript-email ( A Direct Email Form)
Old
  (#1 (permalink))
andrew
Senior Member
andrew is an unknown quantity at this point
 
andrew's Avatar
 
Status: Offline
Posts: 212
Points: 67.2
Bank: 0.4
Total Points: 67.6
Donate
Join Date: Nov 2006
Rep Power: 0
Cool Futurescript-email ( A Direct Email Form) - 11-04-2006, 07:25 PM

FUTURESCRIPT-EMAIL ( A DIRECT EMAIL FORM)
+ Copyright 2006 pointblank futurescript-email.
+ Store the html page the contact1.php in the same folder/directory
+ Remember to change "http://www.domain.com, Admin, Admin Contact, admin@domain.com" in the contact1.php

Try this -->

<!----- THE PHP FORM NAMED contact1.php -----!>

<?
$error = "There are some fields not filled in, Please go back";
if($nickname == "" || $message == "" || $email == ""){
echo $error;
}
elseif($ip == ""){
echo "Sorry, an unknow error has occured";
}
else{
$yourwebsite ="http://www.domain.com";
$recipientname ="Admin";
$subject= "Admin Contact";
$recipient="admin@domain.com";

$header = "From: $nickname <$email> ";

$content= "
Dear $recipientname, $nickname has sent you an e-mail from $yourwebsite.
Message:
$message";
mail($recipient, $subject, $header, $content);
echo "Thanks! Your e-mail has been sent succesfully $nickname. We will contact you back on $email ASAP";
}
?>

<!----- THE HTML FORM (PASTE ANYWHERE IN UR HTML PAGE -----!>

<p>
<form action="contact1.php" method="post"> <div align="center"><span class="style1"><b>Name:</b></span><br />
<input name="nickname" type="text" value="Your name/nickname" size="40" />
<br />
<br />
<span class="style1"><b>E-mail:</b></span><br />
<input name="email" type="text" value="Your E-mail" size="40" />
<br />
<br />
<span class="style1"><b>Message:</b></span><br />
<textarea name="message" rows="10" cols="50">
</textarea>
<br />
<input type="hidden" name="ip" value="<? echo $REMOTE_ADDR; ?>" />
<input name="Submit" type="submit" value="Submit" />
<input name="Submit" type="reset" value="Reset" />
</div>
</form>
</p>


http://Destin-Designs.co.nr - Custom Design 4 U
10$ - 22$
   
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 0.1
Points Per Thread: 15.0
Points Per Reply: 5.0



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 ©2007, Crawlability, Inc.