php portal in html

Discussion in 'Site & Server Administration' started by gree124, Aug 10, 2010.

  1. #1
    I need some help here i want to know how do i integrate php login portal in html pages cause i have few pages in html and few php for more information see the attach file.
     

    Attached Files:

    • php.JPG
      php.JPG
      File size:
      7.9 KB
      Views:
      39
    • html.JPG
      html.JPG
      File size:
      16.9 KB
      Views:
      33
    gree124, Aug 10, 2010 IP
  2. vinoth.t

    vinoth.t Peon

    Messages:
    156
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can't include php file in html page(only option is to use iframe).
    Just create one more php file on that include the php login page and html page
     
    vinoth.t, Aug 10, 2010 IP
  3. RonBrown

    RonBrown Well-Known Member

    Messages:
    934
    Likes Received:
    55
    Best Answers:
    4
    Trophy Points:
    105
    #3
    You can, but it isn't recommended. You can do it by changing the mapping for .html files so they are processed as .php pages, but that just adds work to the server running .html files through the php scripting engine.

    If you want to keep the form in an HTML Page, just make sure the form is posted to the appropriate PHP for processing.
     
    RonBrown, Aug 10, 2010 IP
  4. PsyberMind

    PsyberMind Peon

    Messages:
    33
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can make an index.php or whatever you need that contains HTML elements, and then for your login form, just call the php file with an include. Works best for me.

    Your php files can contain all html for that matter, its just when it sees that <?php it knows to use php to process the page.
     
    PsyberMind, Aug 11, 2010 IP