Re: $_POST array
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: $_POST array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149736@lists.php.net to get a copy of this message | ||
You should read this section of the manual:
http://us2.php.net/manual/en/language.types.string.php
Scroll down the the "Variable parsing" title and read from there and all
will be clear.
-Rasmus
On Sun, 1 Jun 2003, Steven Farrier wrote:
> I have tried using $_POST array variables in the following ways
>
> $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']";
>
> Neither of these have worked what am I doing wrong?
>
> Steve
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>