Re: How to pass on a variable with a page request

From: Date: Wed, 22 Nov 2000 12:01:02 +0000
Subject: Re: How to pass on a variable with a page request
Groups: php.general 
Request: Send a blank email to php-general+get-26617@lists.php.net to get a copy of this message
Addressed to: "Bruno Tersago" <bruno@fhw.gr> <Lawrence.Sheed@dfait-maeci.gc.ca> "PHP General" <php-general@lists.php.net> ** Reply to note from "Bruno Tersago" <bruno@fhw.gr> Wed, 22 Nov 2000 12:13:33 +0200 > > Hi Lawrence, > > I think I located the problem now thanks to your suggestions. > > > I would first try passing the url to a test file eg > > > > test.php > > <? > > print "<br>GET:".$HTTP_GET_VARS ("user"); > > print "<br>POST:".$HTTP_POST_VARS ("user"); > > print "<br>INTERNAL:".$user; > > ?> > > > > I did what you suggested and the answer I got from PHP was: Call to > undefined function: array() in /usr/local/httpd/htdocs/test.php on line 9 I think what you want is $HTTP_POST_VARS[ "user" ] Note the [] not () [] derefrences arrays. () passes parameters to a function. When you use () you are telling PHP you want to call a function. In this case you are telling it to run the function named by the variable $HTTP_POST_VARS. I don't think that is what you want. Rick Widmer Internet Marketing Specialists www.developersdesk.com

« previous php.general (#26617) next »