Current location: Hot Scripts Forums » General Community » Script Requests » simple email


simple email

Reply
  #1 (permalink)  
Old 11-18-05, 11:43 PM
pkcidstudio's Avatar
pkcidstudio pkcidstudio is offline
Coding Addict
 
Join Date: Nov 2005
Posts: 332
Thanks: 0
Thanked 0 Times in 0 Posts
simple email

greetings,
like the header i need a simple email php form. it will go from my flash site to my email. if the code is made i can fill in the blanks. basically when it sends the info i need it to gotoAndPlay the next frame, this i can take care of. but i do need it to email it to my web address. i have posted the code i am currently using, so purhaps one fo you php gurus can take the minute to correct what i have. i invite you to go to my website to the contact section to see what it that i need. but it is a simple email/mail/message form. nothing to complicated. thank you all, take care.
PHP Code:

<?php 

 
if (isset($_POST['check'])) { 


    
$to "pkcidstudio@gmail.com"
    
$subject "contact form results"
    
$name_field $_POST['name']; 
    
$email_field $_POST['email']; 
    
$message $_POST['message']; 
         
    foreach(
$_POST['check'] as $value) {  
        
$check_msg .= "Checked: $value\n";  
    }  
}  

     
    
$body "From: $name_field\n E-Mail: $email_field\n $check_msg Message:\n $message\n"

    if(
mail($to$subject$body)){ 
  
header("Location: http://www.pkcidstudio.com/thankyou.htm"); 
}else{ 
  echo 
"Mail was not sent!"


?>
so i think i may have made this too complicated.
Reply With Quote
  #2 (permalink)  
Old 11-19-05, 04:21 AM
chrille112 chrille112 is offline
Newbie Coder
 
Join Date: Nov 2005
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by pkcidstudio
greetings,
like the header i need a simple email php form. it will go from my flash site to my email. if the code is made i can fill in the blanks. basically when it sends the info i need it to gotoAndPlay the next frame, this i can take care of. but i do need it to email it to my web address. i have posted the code i am currently using, so purhaps one fo you php gurus can take the minute to correct what i have. i invite you to go to my website to the contact section to see what it that i need. but it is a simple email/mail/message form. nothing to complicated. thank you all, take care.
PHP Code:

<?php 

 
if (isset($_POST['check'])) { 


    
$to "pkcidstudio@gmail.com"
    
$subject "contact form results"
    
$name_field $_POST['name']; 
    
$email_field $_POST['email']; 
    
$message $_POST['message']; 
         
    foreach(
$_POST['check'] as $value) {  
        
$check_msg .= "Checked: $value\n";  
    }  
}  

     
    
$body "From: $name_field\n E-Mail: $email_field\n $check_msg Message:\n $message\n"

    if(
mail($to$subject$body)){ 
  
header("Location: http://www.pkcidstudio.com/thankyou.htm"); 
}else{ 
  echo 
"Mail was not sent!"


?>
so i think i may have made this too complicated.

Wrong forum.. Try the PHP forum
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Email from to email! AskAR ASP 7 06-27-05 03:44 PM
Simple internal email server needed for NT 4.0 goanna300 The Lounge 2 10-26-04 02:06 AM
need help to create a attachment on my email frankkk PHP 1 10-25-04 02:10 PM


All times are GMT -5. The time now is 11:51 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.