NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > CODE
Reload this Page PHP Formail

CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 04-28-2005, 04:19 PM THREAD STARTER               #1 (permalink)
Account Closed
 
Mystic's Avatar
Join Date: Feb 2005
Location: England
Posts: 1,169
Mystic is just really niceMystic is just really niceMystic is just really niceMystic is just really nice
 



PHP Formail


this is the simplest i seen, submit your forms to "thankyou.php" or whatever, make it a thankyou message for submitting a form, and use this code:

submit a standard html file to this, its easy

PHP Code:

 
<SCRIPT LANGUAGE="php">
    
$email $HTTP_POST_VARS[email];
    
$mailto "you@domainl.com";
    
$mailsubj "Form submission";
    
$mailhead "From: $email\n";
    
reset ($HTTP_POST_VARS);
????: NamePros.com http://www.namepros.com/code/86035-php-formail.html
    
$mailbody "Values submitted from web site form:\n";
    while (list (
$key$val) = each ($HTTP_POST_VARS)) {
        
$mailbody .= "$key : $val\n"; }
    
mail($mailto$mailsubj$mailbody$mailhead);
 
</SCRIPT> 
Mystic is offline  
Old 06-29-2005, 12:47 AM   #2 (permalink)
Account Closed
Join Date: May 2005
Location: NY, USA
Posts: 283
hasif has a spectacular aura abouthasif has a spectacular aura about
 



it helps beginner to start better. Little script looks good.
hasif is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial: Getting started with PHP (The Basics) deadserious Webmaster Tutorials 60 11-17-2007 12:35 PM
Googlism - What does google think of you? deadserious The Break Room 55 12-15-2005 10:09 AM
Beware of PHP! PolurNET The Break Room 25 03-29-2005 04:04 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 01:39 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger