RE: [PHP] Re: function help simple redirect
| From: | Frank Tudor | Date: | Mon, 27 Oct 2003 19:55:04 +0000 |
| Subject: | RE: [PHP] Re: function help simple redirect | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167785@lists.php.net to get a copy of this message | ||
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/