Put HTML in PHP script
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.
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.
$foo = "Fubar";
<p>Hello, <?php echo $foo; ?>!</p>
// or you could do this:
echo "<p>Hello again, $foo!</p>";
"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
How to Ask Questions the Smart Way
(not affiliated with this site, but well worth reading)
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)