Put HTML in PHP script

Discussing Html . Code , Software , other

Moderators: egami, macek, gesf

Post Reply
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:

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: 72
Joined: Wed Jun 12, 2013 9:30 pm
Contact:

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: 10
Joined: Thu Apr 07, 2016 10:46 am
Location: Bigfoot Country, Canada
Contact:

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

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests