Re: [PHP] Re: function help simple redirect

2003-10-27 Thread Frank Tudor
This one worked (kinda) I have no more errors but it doesn't do the redirect (hmmm)?? So now here is what it looks like: I am putting in the $payment=1; so it will automatically go to test_page2.html but it just sits there. Is there a headers thing already going on blocking this? I know

Re: [PHP] Re: function help simple redirect

2003-10-27 Thread Chris Shiflett
--- Frank Tudor [EMAIL PROTECTED] wrote: I am putting in the $payment=1; so it will automatically go to test_page2.html but it just sits there. [snip] header ('Location: http://ftudor/test/test_page2.html'); What happens when you type it into your browser manually?

RE: [PHP] Re: function help simple redirect

2003-10-27 Thread Pablo Gosse
On Monday, October 27, 2003 11:26 AM, Frank Tudor wrote: This one worked (kinda) I have no more errors but it doesn't do the redirect (hmmm)?? ?PHP $payment = 1; function payment(){ global $payment; if ($payment == 0){ header ('Location: http://ftudor/test/test_page.html'); }

Re: [PHP] Re: function help simple redirect

2003-10-27 Thread Frank Tudor
I get my ugly purple test page :) Frank --- Chris Shiflett [EMAIL PROTECTED] wrote: --- Frank Tudor [EMAIL PROTECTED] wrote: I am putting in the $payment=1; so it will automatically go to test_page2.html but it just sits there. [snip] header ('Location:

RE: [PHP] Re: function help simple redirect

2003-10-27 Thread Frank Tudor
Oh?!?! Sweet! thanks... let me try that and get back to the group :) --- Pablo Gosse [EMAIL PROTECTED] wrote: On Monday, October 27, 2003 11:26 AM, Frank Tudor wrote: This one worked (kinda) I have no more errors but it doesn't do the redirect (hmmm)?? ?PHP $payment = 1;

RE: [PHP] Re: function help simple redirect

2003-10-27 Thread Frank Tudor
Shit! payment(); WORKS! Thank for teach me how to do a function guys!!! Frank --- Frank Tudor [EMAIL PROTECTED] wrote: Oh?!?! Sweet! thanks... let me try that and get back to the group :) --- Pablo Gosse [EMAIL PROTECTED] wrote: On Monday, October 27, 2003 11:26 AM, Frank