Skip site navigation (1) Skip section navigation (2)

passing variables

From: brew(at)theMode(dot)com
To: pgsql-novice(at)postgresql(dot)org
Cc: hodges(at)xprt(dot)net
Subject: passing variables
Date: 2002-12-22 17:52:36
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice

> Hi <?php echo $_POST["name"]; ?>.
> You are <?php echo $_POST["age"]; ?> years old.
> >From the php documentation.  These are autoglobals.
> There is a $_GET also.

... and the $_REQUEST array covers both posts and gets, so it is more
secure to use either a $_GET or $_POST depending on your situation......

Note that in your earlier post this morning you didn't put the array
subscript in square brackets, i.e. $_REQUEST['func'] , you put it in
parentheses, i.e. $_REQUEST('func), which indicates a function call, not
an array subscript.

> > Fatal error: Call to undefined function:  () in
> > /var/www/html/php_lib_login_includes/ test_create_acct.php on line 2

It wasn't a joke.........


In response to

pgsql-novice by date

Next:From: HarryDate: 2002-12-22 21:59:26
Subject: Decrease in performance with 7.3/optimizing a query
Previous:From: hodgesDate: 2002-12-22 16:35:23
Subject: Re: passing variables

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group