www.webdeveloper.com
Results 1 to 2 of 2

Thread: Put HTML in PHP script

  1. #1
    Join Date
    Jul 2014
    Posts
    1

    Put HTML in PHP script

    Hi Guys,

    A few weeks ago I discovered this amazing PHP login script: https://github.com/panique/php-login-advanced

    After installing it locally I was happy to see that it worked fine however the pages do not have any design.

    See behind this direct link:
    http://postimg.org/image/d6qid9we5/

    I would like to put some HTML and CSS around the tags so I have looked around the internet for some information but so far I haven't find anything that really explains what I need: adding HTML/CSS around a PHP script.

    It must be that I'm missing something out. Can anybody help me with guiding me to a good course, template or explanation about this?

    Many thanks in advance.
    Insearchfor

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,530
    Anything not within <?php ... ?> tags will be directly output to the browser. Likewise, within <?php ... ?> tags, you can output text to the browser via echo or print() commands. So just choose what makes sense to use at any point where you need to output some HTML.
    PHP Code:
    <?php
    $foo 
    "Fubar";
    ?>
    <html><head><title>Test</title></head>
    <body>
    <h1>Test</h1>
    <p>Hello, <?php echo $foo?>!</p>
    <?php
    // or you could do this:
    echo "<p>Hello again, $foo!</p>";
    ?>
    </body>
    </html>
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles