|
Posted by Erwin Moller on 09/10/07 10:56
blessonin@gmail.com wrote:
> hai all,
> I am very new to this php language.I want to create a
> webpage with php ,in the first page there is two text boxes are there
> one for username and other for password so when ever then user should
> give the correct username and password,how should i give link to the
> next page in php.plese help me..
>
Hi,
This is typically done with sessions.
So you should start with making sure you understand the working of sessions.
A good place to start is www.php.net:
http://nl3.php.net/manual/en/ref.session.php
Pay attention to session_start() and start with making a simple page
that only tries to read/write sessionvars and try to retrieve them on
another page.
Also, great for debugging:
echo "<pre>";
print_r($_SESSION);
echo "</pre>";
(Replace $_SESSION with $_POST or $_GET or $_COOKIE to print out those
superglobals, also very handy when developing and debugging.)
Regards,
Erwin Moller
[Back to original message]
|