include login page in index ,but how???
Posted: Fri Aug 18, 2006 7:00 pm
Hi,
I am trying to include the login page in index.php . But when i login it opens in new page outside index.php. My login system is devided in two pages login.php en cheklogin.php. In login.php the code is only a form and tables, and takes the information from cheklogin.php so its like this:
And in the cheklogin.php i have whole bunch information code, that needs to make connection with DB, session information.
Now my question is, how can i make login.php included inside the index.php? So that they work inside the index.php
Do i have to put some headers information on top of index.php?
i add it only this line in index.php where login.php must be included:
<?
include("login.php");
?>
But this is not enoughf, wat do i have to do so that login.php takes the information from cheklogin.php and includes inside index.php?
Thuse any have ideea how to do this?
Thanks in advance,
NAT
I am trying to include the login page in index.php . But when i login it opens in new page outside index.php. My login system is devided in two pages login.php en cheklogin.php. In login.php the code is only a form and tables, and takes the information from cheklogin.php so its like this:
Code: Select all
<form method="post" action="../testpage/cheklogin.php">
<p><STRONG>Name:</STRONG><br>
<input type="text" name="name" size="25" maxlength="25"></p>
<p><strong>Password:</strong><br>
<input type="password" name="password" size="25" maxlength="25"></p>
<p><input type="submit" name="submit" value="Login"></p>
</form>And in the cheklogin.php i have whole bunch information code, that needs to make connection with DB, session information.
Now my question is, how can i make login.php included inside the index.php? So that they work inside the index.php
Do i have to put some headers information on top of index.php?
i add it only this line in index.php where login.php must be included:
<?
include("login.php");
?>
But this is not enoughf, wat do i have to do so that login.php takes the information from cheklogin.php and includes inside index.php?
Thuse any have ideea how to do this?
Thanks in advance,
NAT