Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: pointing to two different PHP pages


Message #1 by "Allan Hedegaard Hansen" <allan_hedegaard@h...> on Mon, 25 Sep 2000 10:21:02 +0100
Couple of tricks you can use:


* write a php page that decides which type of user they are, and have it
include or require a different PHP page accordingly

* have your php page decide which type of user they are, and issue an HTTP
redirect to the relevant page. This is achieved using a line like:

header("Location: http://www.foo.com/foo.php");

Note that if you do this, you shouldn't send any content in the PHP page
issuing the redirect - don't echo or print or anything.

Alternatively, just have one php page that generates a different HTML page
according to which type of user has logged in.

> -----Original Message-----
> From: Allan Hedegaard Hansen [mailto:allan_hedegaard@h...]
> Sent: 25 September 2000 10:21
> To: professional php
> Subject: [pro_php] pointing to two different PHP pages
> 
> 
> we are making af PHP page that authenticates a user. The user of the
> system writes his name and access code in a form and pushing a submit
> button. Depending on who the user is the page should point to 
> different
> pages. The problem is that we can only point to one of the 
> pages. Is it
> possible that the PHP page can point to more than one page.
> 
> ---
> To place your message here, or to sponsor this list, please 
> e-mail mailto:p2pinfo@w...?subject=MediaPack, remembering 
> to provide contact details for yourself. We will e-mail you a 
> Media Pack within 24 hours.
> 

  Return to Index