0
   

Is my php code good?

 
 
Reply Fri 21 May, 2010 09:45 am
<?php
$name = $_POST['name'];
$last = $_POST['last'];
$email = $_POST['email'];
$selectworkshop = $_POST['selectworkshop'];
$comments = $_POST['comments'];
$to = "[email protected]";
$subject = "Summer 2010 Workshop Registration Confirmation";
$headers = $last , $name . "\n" . "\n" . $email;

$body .= "Name: " . $name . "Last: " . "\n" . $last . "\n" . "\n" . "E-Mail: " . $email . "\n" . "\n" . "Comments: " . "\n" . $comments . "\n" . "\n";

foreach($selectworkshop as $selected){
$body .= "Workshop: " . $selected . "\n";
}

mail($to, $email, $subject, $body, $headers)
?>
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 861 • Replies: 0
No top replies

 
 

Related Topics

 
  1. Forums
  2. » Is my php code good?
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/26/2024 at 03:25:18