generating e-mail msg using multiple $_request
Moderator: General Moderators
-
royboy1969
- Forum Newbie
- Posts: 1
- Joined: Mon May 24, 2010 1:10 pm
generating e-mail msg using multiple $_request
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?
- 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
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.