Re: Empty $_SESSION and $_POST ??
| From: | Miguel Cruz | Date: | Wed, 24 Apr 2002 14:24:50 +0000 |
| Subject: | Re: Empty $_SESSION and $_POST ?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94382@lists.php.net to get a copy of this message | ||
On Mon, 22 Apr 2002, Andre Dubuc wrote:
> would be OK. It seems it's the ONLY way my script will allow the array to be
> put into the database (PostgreSQL). If I type into the INSERT command
>
> .... $bozo, $next_var, $next_next_var // it works
> .... $_GET['bozo'], $_GET['next_var'], etc // I get T_Variable undefined
>
>
> **********************************************************
>
> The problem here is that $_SESSION['anything'] or $_GET['anything']
> doesn't
> work. It refuses to print or pass anything. Why? I can't figure that out?
>
> I've tried a simple test, and yes the globals are off. But using the
>
> $bozo = $_GET['bozo']; approach, at least it writes to the database, but I
> cannot access the arrays at all??? And, I HAVE to write these for ALL the
> variables, else it doesn't get passed to the db.
>
> Sigh. So where am I messing up?
Once again, just do
{$_SESSION['anything']}
with the {curly braces} around it, if the array dereference is anywhere
inside "double quotes".
miguel