Results 1 to 2 of 2

Thread: Put HTML in PHP script

  1. #1
    Join Date
    Jul 2014

    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:

    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.

  2. #2
    Join Date
    Aug 2004
    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:
    <p>Hello, <?php echo $foo?>!</p>
    // or you could do this:
    echo "<p>Hello again, $foo!</p>";
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

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