RE: [PHP] problem transferring a variable using POST
| From: | Bertrand Moulard | Date: | Thu, 09 Oct 2003 16:30:02 +0000 |
| Subject: | RE: [PHP] problem transferring a variable using POST | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-165630@lists.php.net to get a copy of this message | ||
it does, thanks
-----Original Message-----
From: Chris W. Parker [mailto:cparker@swatgear.com]
Sent: 09 October 2003 17:28
To: Bertrand Moulard; Davy Campano; php-general@lists.php.net
Subject: RE: [PHP] problem transferring a variable using POST
Bertrand Moulard <mailto:odel@twin-pix.com>
on Thursday, October 09, 2003 9:24 AM said:
> fair enough, $_POST is an array, but what about $_POST['ticketed'] ?
> Just want to make sure about this {} thingie
<?php
echo "This is the password $_POST['password']";
echo "This is THE password {$_POST['password']}";
?>
The output of this page is the following:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING in
/home/cparker/public_html/oop/loginp.php on line 30
It's choking on the first echo statement.
Does that make sense now?
chris.
--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/