• Log in or sign up for an account here: https://www.sythe.org/login

Integrating Login.php into a home.php

Status
Not open for further replies.

Rahman

Guru

$5 USD Donor New
Joined
Dec 1, 2011
Sythe Gold
46
Messages
1,771
Location
Australia
Easter 2013
Okay guys, atm, I have 2 pages for my website.

home.php

& login.php

How would I integrate login.php into home.php ?

Atm, To login i have a brand new xhtml page with php and a form.

Ive tried copying the contents of login.php placing it in home.php including the php, but it doesnt seem to work :S

Anyone got any suggestions?
 
Just have a form within home.php that sends to login.php to handle the processing of the login and returns to wherever logging in should take you or an invalid password page.
 
Can you post the code from both files here?
 
You could just have two different forms with different names and do this for your php to see which block of code/functions to call
Code:
if(isset($_POST['form1']))
{

}
else if(isset($_POST['form2']))
{

}
 
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top