Re: $_POST array

From: Date: Mon, 02 Jun 2003 10:00:20 +0000
Subject: Re: $_POST array
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-149775@lists.php.net to get a copy of this message
this works too: $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']; "Zbranigan" <zbranigan@volcanomail.com> schrieb im Newsbeitrag news:7ou1b9jqn6.fsf@stkitts.pacbell.net... > >>>>> "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> ($_POST['zip'])\n($_POST['country'])\n($_POST['email'])\n($_POST['design'])\ > Steven> n($_POST['comments'])"; > > Steven> $message = "$_POST['first_name'] > Steven> > Steven> $_POST['last_name']\n$_POST['address']\n$_POST['city'] > Steven> $_POST['state'] > 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['des ign']})\ > 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

« previous php.general (#149775) next »