RE: [PHP] Empty $_SESSION and $_POST ??

2002-04-24 Thread SP
Have you tried doing phpinfo() and seeing what values are coming up? -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: April 22, 2002 5:59 PM To: Erik Price Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Empty $_SESSION and $_POST ?? On Monday 22 April 2002 05:34 pm, you

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-24 Thread Miguel Cruz
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'],

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-24 Thread Andre Dubuc
On Wednesday 24 April 2002 09:18 am, you wrote: Have you tried doing phpinfo() and seeing what values are coming up? I finally got everything working, thanks to Erik Price's excellent help and for all the others who offered their suggestions. Thanks for your suggestion! Regards, Andre --

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-23 Thread Erik Price
First thing I should say is, you only need to quote the relevant part of an email -- that way, everyone knows exactly what to read (rather than pages of old email threads) to answer the question. But don't worry about it. Now, on to your situation -- That clears up a lot. I sort of thought

[PHP] Re: {PHP] Empty $_SESSION and $_POST??

2002-04-23 Thread Andre Dubuc
Hi Eric, First off, my apologies for the bloat replies, and for the re-write of this thread -- your last reply accidentally was deleted. My actual INSERT command (for page 1): $query = INSERT INTO sponsor (sid, sfname, ssname, sinit, saddr1, saddr2, scity, sprov, scountry, scode, sstatus,

Re: [PHP] Empty $_SESSION and $_POST??

2002-04-23 Thread Andre Dubuc
Hi Eric, First off, my apologies for the bloat replies, and for the re-write of this thread -- your last reply accidentally was deleted. My actual INSERT command (for page 1): $query = INSERT INTO sponsor (sid, sfname, ssname, sinit, saddr1, saddr2, scity, sprov, scountry, scode, sstatus,

Re: [PHP] Re: {PHP] Empty $_SESSION and $_POST??

2002-04-23 Thread Alexander Skwar
»Andre Dubuc« sagte am 2002-04-23 um 14:28:56 -0400 : I tried with VALUES ($_GET['sfname'] etc, etc and got a T_Variable error if that's part of a string, than it's for sure broken. The correct way would be VALUES ( . $_GET['sfname'] non-cumulative and specific to the page from which it

Re: [PHP] Re: {PHP] Empty $_SESSION and $_POST??

2002-04-23 Thread Erik Price
On Tuesday, April 23, 2002, at 02:28 PM, Andre Dubuc wrote: I tried with VALUES ($_GET['sfname'] etc, etc and got a T_Variable error as you said would happen. I've yet to try what you've suggested, but since the Test to ensure your PHP binary is working shows that it is indeed

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-22 Thread Erik Price
On Friday, April 19, 2002, at 09:41 PM, Andre Dubuc wrote: Is there a way I can verify that (a) globals are off and (b) $_SESSION or $_POST are on? This probably what's happening -- I can't access the arrays at all -- so, I think that might be where the problem lies. The $vars still

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-22 Thread Andre Dubuc
On Monday 22 April 2002 09:50 am, you wrote: On Friday, April 19, 2002, at 09:41 PM, Andre Dubuc wrote: Is there a way I can verify that (a) globals are off and (b) $_SESSION or $_POST are on? This probably what's happening -- I can't access the arrays at all -- so, I think that might

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-22 Thread Erik Price
On Monday, April 22, 2002, at 03:47 PM, Andre Dubuc wrote: I tried what you suggested, and indeed globals are off. Perhaps my problem stems from my use of the $_GET[] with $vars. I guess I don't really understand what I'm doing. If you would take a peek at this code [I think I've

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-22 Thread Andre Dubuc
On Monday 22 April 2002 05:34 pm, you wrote: On Monday, April 22, 2002, at 03:47 PM, Andre Dubuc wrote: I tried what you suggested, and indeed globals are off. Perhaps my problem stems from my use of the $_GET[] with $vars. I guess I don't really understand what I'm doing. If you would

[PHP] Empty $_SESSION and $_POST ??

2002-04-19 Thread Andre Dubuc
I've switched register_globals=off and register_argc_argv=off in php.ini to use $_SESSION and/or $_POST. All my code had been written using $var Unfortunately, I cannot seem to access the arrays in either $_SESSION and $_POST. I've set each page to start with ?php session_start(); ob_start();

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-19 Thread Miguel Cruz
On Fri, 19 Apr 2002, Andre Dubuc wrote: Whenever I try: print($_SESSION['sfname']); or print($_POST['scity'] I get a parse error expecting 'T_STRING' . . . -- obviously there's nothing in the array or I haven't set it. You just have a simple syntax error. You can use any of the

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-19 Thread Andre Dubuc
On Friday 19 April 2002 08:13 pm, you wrote: On Fri, 19 Apr 2002, Andre Dubuc wrote: Whenever I try: print($_SESSION['sfname']); or print($_POST['scity'] I get a parse error expecting 'T_STRING' . . . -- obviously there's nothing in the array or I haven't set it. You just have a

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-19 Thread Andre Dubuc
I'm running PHP 4.1.2 + Apache 1.3.23 + PostgreSQL 7.2. I've tried reverting back to globals=on, and same problem. Yet, earlier in another script I used $sfname = $_GET['sfname']; to get the value of sfname -- now, it won't work. I'm truly stumped -- I don't know whether it's my code? [I

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-19 Thread Jason Wong
On Saturday 20 April 2002 09:41, Andre Dubuc wrote: Is there a way I can verify that (a) globals are off and (b) $_SESSION or $_POST are on? This probably what's happening -- I can't access the arrays at all -- so, I think that might be where the problem lies. The $vars still work though