generating e-mail msg using multiple $_request

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
royboy1969
Forum Newbie
Posts: 1
Joined: Mon May 24, 2010 1:10 pm

generating e-mail msg using multiple $_request

Post by royboy1969 »

I am using a php form to generate an e-mail, with 7 or 8 form inputs as the message. Having trouble getting more than one input value to appear in message. Using the variable $message = $_REQUEST [name] generates the e-mail with name only, but how do I include the other input values? Tried $message = $_REQUEST [name] + $_REQUEST [age] + .....etc. Can someone help with the syntax please?
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: generating e-mail msg using multiple $_request

Post by AbraCadaver »

Use . to concatenate instead of +. Also, quote your array indexes $_REQUEST ['name'].
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Post Reply