Integrating Login.php into a home.php

Discussion in 'Web Programming' started by Rahman, May 22, 2013.

Thread Status:
Not open for further replies.
Integrating Login.php into a home.php
  1. Unread #1 - May 22, 2013 at 12:31 PM
  2. Rahman
    Joined:
    Dec 1, 2011
    Posts:
    1,771
    Referrals:
    0
    Sythe Gold:
    46
    Easter 2013

    Rahman Guru
    $5 USD Donor New

    Integrating Login.php into a home.php

    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?
     
  3. Unread #2 - May 22, 2013 at 2:48 PM
  4. Game
    Joined:
    May 20, 2013
    Posts:
    352
    Referrals:
    395
    Sythe Gold:
    1,975

    Game Some men just want to watch the world burn.
    Banned

    Integrating Login.php into a home.php

    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.
     
  5. Unread #3 - May 23, 2013 at 8:35 AM
  6. Rahman
    Joined:
    Dec 1, 2011
    Posts:
    1,771
    Referrals:
    0
    Sythe Gold:
    46
    Easter 2013

    Rahman Guru
    $5 USD Donor New

    Integrating Login.php into a home.php

    The whole purpose of the exercise is to combine 2 .php files inside one.
     
  7. Unread #4 - May 24, 2013 at 2:05 AM
  8. Ryan
    Joined:
    Mar 14, 2006
    Posts:
    2,946
    Referrals:
    31
    Sythe Gold:
    56

    Ryan Hopeless Romantic
    Banned

    Integrating Login.php into a home.php

    Can you post the code from both files here?
     
  9. Unread #5 - May 24, 2013 at 6:41 AM
  10. Rahman
    Joined:
    Dec 1, 2011
    Posts:
    1,771
    Referrals:
    0
    Sythe Gold:
    46
    Easter 2013

    Rahman Guru
    $5 USD Donor New

    Integrating Login.php into a home.php

    I'll PM it to you.
     
  11. Unread #6 - Jul 30, 2013 at 4:39 PM
  12. Toulouse
    Joined:
    Jul 30, 2013
    Posts:
    87
    Referrals:
    0
    Sythe Gold:
    0

    Toulouse Member

    Integrating Login.php into a home.php

    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']))
    {
    
    }
    
     
  13. Unread #7 - Jul 30, 2013 at 5:47 PM
  14. Virtual
    Joined:
    Jan 25, 2013
    Posts:
    1,250
    Referrals:
    1
    Sythe Gold:
    226
    Two Factor Authentication User Halloween 2015 Easter 2015 Sythe's 10th Anniversary

    Virtual Guru
    $25 USD Donor New

    Integrating Login.php into a home.php

    Show code?
     
< ebook | >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site