note 63602 rejected from ref.mail by bjori

From: Date: Sat, 25 Mar 2006 10:50:00 +0000
Subject: note 63602 rejected from ref.mail by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-106569@lists.php.net to get a copy of this message
Note Submitter: theflea912 at gmail dot com ---- Hey I recently set up the bare-minimum for the mail() tag. (I have just started to learn PHP) My friend who at least acts like he knows PHP says that the code is not stable because somebody could issue a UNIX Deleate command and screw up everything. The code is below: An email has been sent to the Director of Human Resources. Thank you for apply, you will hear back in a bit. <?php $body = "Application Alert!\n\n"; foreach($_POST as $field => $value) { $body .= sprintf("%s = %s\n", $field, $value); } mail("theflea912@gmail.com", "APPLYING PILOT!", $body, 'From: "APPLY" <apply@qantasva.com'); ?>

« previous php.notes (#106569) next »