Saturday, 18 May 2013 13:55

how to redirect to a page in php

Written by 
Rate this item
(0 votes)

in php there is a command which is used
to redirect to a page from a page.the following
codes shows hot to achieve this.

it may be
that if a user login with password and if it's
matched then the user will be redirected to the
member home page.the following codes shows that.
the 'header' does the part of redirecting to
another page.

if($password == $passwd)
$_SESSION["userid"] = $id;
/members/index.php"); // redirects
$_SESSION["msg"] = "<li>Login Information - Username
/Password: Incorrect Combination</li>";

Read 3395 times
Super User

Email This email address is being protected from spambots. You need JavaScript enabled to view it.

Latest discussions

  • No posts to display.