Put HTML in PHP script

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

Insearchfor
New php-forum User
New php-forum User
Posts: 1
Joined: Thu Jul 10, 2014 11:23 pm

Put HTML in PHP script

Postby Insearchfor » Thu Jul 10, 2014 11:39 pm

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 to 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.
Thomas

User avatar
WebOutGateway
New php-forum User
New php-forum User
Posts: 65
Joined: Mon Jun 13, 2011 9:25 pm
Location: Pasig City, Philippines
Contact:

Re: Put HTML in PHP script

Postby WebOutGateway » Wed Jul 16, 2014 9:43 pm

Hi, Insearchfor!

You could try this:

<?php
echo 'insert HTML here';
?>


Also, check this out:
http://www.w3schools.com/website/web_php_style.asp

I hope this helps. Thank you.

johnmacd
New php-forum User
New php-forum User
Posts: 75
Joined: Wed Jun 12, 2013 9:30 pm
Contact:

Re: Put HTML in PHP script

Postby johnmacd » Thu Apr 07, 2016 3:41 am

Hi,

You can do like this

HTML in PHP :
<?php
echo "<table>";
echo "<tr>";
echo "<td>Name</td>";
echo "<td>".$name."</td>";
echo "</tr>";
echo "</table>";
?>

Thanks

User avatar
phpscripting
New php-forum User
New php-forum User
Posts: 7
Joined: Thu Apr 07, 2016 10:46 am
Location: Bigfoot Country, Canada
Contact:

Re: Put HTML in PHP script

Postby phpscripting » Sat Apr 16, 2016 7:19 pm

Hi there.

I have several examples on my site with code blocks you can copy, paste and edit to your specifications. This is a good place to start - http://www.php-scripting.com/php-tutorials

I hope it helps you. :)

JT


Return to “HTML Basics”

Who is online

Users browsing this forum: No registered users and 1 guest