Re: $_POST array
| From: | zbranigan | Date: | Sun, 01 Jun 2003 23:59:25 +0000 |
| Subject: | Re: $_POST array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149743@lists.php.net to get a copy of this message | ||
>>>>> "Steven" == Steven Farrier <webmaster@xke.com> writes:
Steven> I have tried using $_POST array variables in the following
Steven> ways $message = "($_POST['first_name'])
Steven>
Steven> ($_POST['last_name'])\n($_POST['address'])\n($_POST['city'])
Steven> ($_POST['state'])
Steven>
Steven> ($_POST['zip'])\n($_POST['country'])\n($_POST['email'])\n($_POST['design'])\
Steven> n($_POST['comments'])";
Steven> $message = "$_POST['first_name']
Steven> $_POST['last_name']\n$_POST['address']\n$_POST['city']
Steven> $_POST['state']
Steven>
Steven> $_POST['zip']\n$_POST['country']\n$_POST['email']\n$_POST['design']\n$_POST[
Steven> 'comments']";
Steven> Neither of these have worked what am I doing wrong?
Steven> Steve
try it like this:
$message = "({$_POST['first_name']})
({$_POST['last_name']})\n({$_POST['address']})\n({$_POST['city']})
({$_POST['state']})
({$_POST['zip']})\n({$_POST['country']})\n({$_POST['email']})\n({$_POST['design']})\
n({$_POST['comments']})";
$message = "{$_POST['first_name']}
{$_POST['last_name']}\n{$_POST['address']}\n{$_POST['city']}
{$_POST['state']}
{$_POST['zip']}\n{$_POST['country']}\n{$_POST['email']}\n{$_POST['design']}\n{$_POST[
'comments']}";
--
no toll on the internet; there are paths of many kinds;
whoever passes this portal will travel freely in the world