Re: [nyphp-talk] problem SOLVED: session variables disappear after redirection

2007-06-14 Thread Michael Southwell
At 09:56 PM 6/14/2007, you wrote: header( "Location: http://example.com/membership.php?action=pay_internet&join=$joinFlag&PHPSESSID={$_SESSION['id']}" ); This should suffice header( "Location: http://example.com/membership.php?action=pay_internet&join=$joinFlag&".SID ); I knew that, but I

Re: [nyphp-talk] problem SOLVED: session variables disappear after redirection

2007-06-14 Thread Rolan Yang
Michael Southwell wrote: Here it is; comments/criticism/suggestions welcome: // get it at the very beginning just so I have it, regardless of cookies list( $label, $id ) = explode( '=', SID ); $_SESSION['id'] = $id; ... // test input ... // passed all tests, redirect to thanks, pay now

Re: [nyphp-talk] problem SOLVED: session variables disappear after redirection

2007-06-14 Thread Michael Southwell
At 09:14 PM 6/14/2007, you wrote: I'd still be interested in seeing where you set the Location header, because it's possible you're not addressing the root cause of the problem. Here it is; comments/criticism/suggestions welcome: // get it at the very beginning just so I have it, regardless of

Re: [nyphp-talk] problem SOLVED: session variables disappear after redirection

2007-06-14 Thread Chris Shiflett
Michael Southwell wrote: > Rolan Yang, David Krings, and Paul Jones all suggested that the problem > might be caused by users who weren't accepting cookies (and for whom the > session id therefore needed to be passed as a $_GET variable); they were > right. As soon as I fixed the redirect to inclu

Re: [nyphp-talk] problem SOLVED: session variables disappear after redirection

2007-06-14 Thread Cliff Hirsch
On 6/14/07 8:58 PM, "Michael Southwell" <[EMAIL PROTECTED]> wrote: > Rolan Yang, David Krings, and Paul Jones all suggested that the > problem might be caused by users who weren't accepting cookies (and > for whom the session id therefore needed to be passed as a $_GET > variable); they were right

[nyphp-talk] problem SOLVED: session variables disappear after redirection

2007-06-14 Thread Michael Southwell
Rolan Yang, David Krings, and Paul Jones all suggested that the problem might be caused by users who weren't accepting cookies (and for whom the session id therefore needed to be passed as a $_GET variable); they were right. As soon as I fixed the redirect to include that, the problems went aw

Re: [nyphp-talk] Form PRG revisited -- again

2007-06-14 Thread csnyder
On 6/12/07, Cliff Hirsch <[EMAIL PROTECTED]> wrote: I have been testing the Form PRG pattern, and really like the way it acts on the user side. The back button and resubmit/reload button behave so much nicer, versus those ugly POSTDATA messages. But it is a bear to implement, unless I'm missing

[nyphp-talk] Filter extension problems

2007-06-14 Thread Cliff Hirsch
I am getting the following error message: Call to undefined function: filter_var() in I¹m using XAMPP V1.5.5, PHP V5.1.6. My server check says that the filter extension is installed. Any thoughts? Anyone using the filter extension with this version on Xampp/PHP? Cliff __