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; On Monday, October 27, 2003 11:26 AM, Frank Tudor wrote: > This one worked (kinda)!!!! > I have no ...


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
Pablo Gosse
 
Posts: n/a
Default RE: [PHP] Re: function help simple redirect

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
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 01:52 AM.


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