> > There are several ways to do this.  The most obvious is with cookies.
> > Set up your index.php to initially create a cookie that authorizes a
> > user to look in the site.  On the rest of your PHP pages, check that
> > this authorization cookie exists.  If not, redirect to index.php.
> Thanks for the response.
> No, this way don't do it: once the cookie is set up in the client's
browser, there is no way for me to prevent the client to type the url
pointing to another page, and the cookie will be valid on that page.
> What i'm trying to do is to force the client to travel pages in the
> order expected, forbidding him/her to access a page out of sequence,
> wich take him to an error message (because, for example, for abscense of
> POST data or something).
> So i'm stuck.
> Thenak you.

You can use the Referer header found in $_SERVER['HTTP_REFERER'] to check
from which page the user comes from.

/Andreas

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to