[FX.php List] Cannot get redirects to work
Jon Montgomery
igsmasupport at igsmasouth.org
Thu Dec 20 02:37:20 MST 2007
In my haste, I left out the { but on the page, they are their. Sorry about
that.
Jon
On 12/20/07 3:23 AM, "Jon Montgomery" <igsmasupport at igsmasouth.org> wrote:
> I have a site in which members login with ID and Password. Then session
> variables are set to include if they have paid their membership dues. The
> FMP DB contains this membership status.
>
> Here is what I need:
>
> If membership is marked "PAID", then I need it to continue to the first step
> page first.php.
>
> If the membership is marked "NOT PAID", then I need it to go to a pay your
> dues page.
>
> I have tried the following:
>
> The Session variable being $_SESSION['Paid_Membership']
>
> <?php if(!session_id()) session_start();?>
>
> <?php
>
> $_SESSION['School_ID'];
>
> $_SESSION['password'];
>
> $_SESSION['Paid_Membership'];
>
> if($_SESSION['Paid_Membership'] == 'NOT PAID')
>
>
> include_once('igsma_dues.php');
>
> else
>
>
>
> include_once('igsma_first.php');
>
>
>
> Now in my mind, this code tells me if the user has NOT paid their
> membership, it should go to the igsma_due.php page. If the user has PAID
> their membership, then it would load the current page.
>
> However, this does not work. I have even tried reversing the order of the
> pages and changing the if criteria. This seems so simple and yet I am not
> able to get the results I expect.
>
> Any light you could shed would be helpful.
>
> Jon Montgomery
> Illinois Grade School Music Association
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
More information about the FX.php_List
mailing list