RE: [PHP] Re: function help simple redirect

This is a discussion on RE: [PHP] Re: function help simple redirect within the PHP General forums, part of the PHP Programming Forums category; Oh?!?! Sweet! thanks... let me try that and get back to the group :) --- Pablo Gosse <gossep@unbc.ca> ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-27-2003
Frank Tudor
 
Posts: n/a
Default RE: [PHP] Re: function help simple redirect

Oh?!?!

Sweet! thanks... let me try that and get back to the group

:)


--- Pablo Gosse <gossep@unbc.ca> 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";
> >
> > function payment(){
> > global $payment;
> > if ($payment == "0"){
> > header ('Location: http://ftudor/test/test_page.html');
> >
> > }
> > elseif ($payment == "1") {
> > header ('Location: http://ftudor/test/test_page2.html');
> >
> > }
> > }
> > ?>

>
> You need to add payment(); to your php code.
>
> The function is defined, but it's not going to do anything
> until you
> call it.
>
> Cheers,
> Pablo



__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
Reply With Quote
  #2 (permalink)  
Old 10-27-2003
Frank Tudor
 
Posts: n/a
Default RE: [PHP] Re: function help simple redirect

Shit!

payment(); WORKS!

Thank for teach me how to do a function guys!!!

Frank


--- Frank Tudor <frank_tudor@yahoo.com> wrote:
> Oh?!?!
>
> Sweet! thanks... let me try that and get back to the group
>
> :)
>
>
> --- Pablo Gosse <gossep@unbc.ca> 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";
> > >
> > > function payment(){
> > > global $payment;
> > > if ($payment == "0"){
> > > header ('Location: http://ftudor/test/test_page.html');
> > >
> > > }
> > > elseif ($payment == "1") {
> > > header ('Location: http://ftudor/test/test_page2.html');
> > >
> > > }
> > > }
> > > ?>

> >
> > You need to add payment(); to your php code.
> >
> > The function is defined, but it's not going to do anything
> > until you
> > call it.
> >
> > Cheers,
> > Pablo

>
>
> __________________________________
> Do you Yahoo!?
> Exclusive Video Premiere - Britney Spears
> http://launch.yahoo.com/promos/britneyspears/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:21 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0