/    Sign up×
Community /Pin to ProfileBookmark

Put HTML in PHP script

Hi Guys,

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

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:
[url]http://postimg.org/image/d6qid9we5/[/url]

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

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@NogDogJul 12.2014 — Anything not within <?php ... ?> tags will be directly output to the browser. Likewise, within <?php ... ?> tags, you can output text to the browser via [b]echo[/b] or [b]print()[/b] commands. So just choose what makes sense to use at any point where you need to output some HTML.
[code=php]
<?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>
[/code]
×

Success!

Help @Insearchfor spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.13,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...