RE: [PHP-DB] guestbook to db to email

From: Date: Sat, 11 Jan 2003 03:08:14 +0000
Subject: RE: [PHP-DB] guestbook to db to email
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-24771@lists.php.net to get a copy of this message
> I am going to build some form elements to use as submitting to a DB for a > guestbook. Then display those inputs on another page as the entries to the > guestbook. I also want to send the information they submit to an email > address. I know how to manage sending simple form elements to an email > (email,subject,body) and so on. But with a guestbook there will be a few > more elements in the body of my email. > > Does anybody know of a very good way to format the body of an email when > form elements are sent into the body?? Form elements are just variables. Insert them into a string and make that your message... $message = "This is a message from {$_POST['name']}. They said this: {$_POST['message']}"; etc... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.db (#24771) next »