• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Page redirect question...

 
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, I have three pages:

A.php, B.php and C.php

When A.php is loading it looks at a session variable and either loads the rest of the page or redirects to B.php.
B.php is a login page and it posts to C.php.

Now the problem comes when I want to redirect from C.php to A.php or B.php based on if the validation on page C.php is true or not
(true -> A.php, false -> B.php to login in again).

I was just wondering if there is a problem when trying to redirect from a page that has been posted to, because the page always just
re-displays B.php when I try to redirect from C.php.

I'm using php so the redirect looks like so:


that works good when I go to the admin page without logging in first, just fowards it to B.php(login). But when I post the password to C.php to validate it and then redirect again to either A or B, it just doesn't do anything but reload B.php.

So basically:

A.php


B.php


C.php



Thanks,

Justin
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic