View Full Version : Would HTML Codes Work With PHP?
habboleaders
05-13-2007, 02:14 AM
I was Wondering If there was A HTML code that if you put it in a PHP page it will work is this true?/?/?/?/?:eek:
cr0wonline
05-13-2007, 02:31 PM
Although i find your post confusing, i think i understand what you're getting at. The answer is yes, you can use HTML in PHP pages.
civworldleague
05-13-2007, 08:39 PM
The way I do this in PHP Fusion is below.
echo "
<span style='color:#0000FF;text-decoration:none'>
Blah blah..<br />
blah blah blah blah
</span>
";
Just be sure that in your HTML you do not use any double quotes( " ) only use single ( ' ) or else the PHP will expect it to be the end of the code... for example instead of
<img src="/images/test.jpg" />
you should do
<img src='/images/test.jpg' />
There may be a different way to use html in php, but this is how php fusion does it for custom panels :)
cr0wonline
05-16-2007, 11:39 PM
If the person is used to using quotes("), then they can just start the echo statement with an apostrophe(') ;)
nuweb
05-26-2007, 07:56 PM
Their are many ways to use HTML in php.
Method 1:<?php
echo "<b>Look, Im useing html<b><br>";
echo '<a href="#">I can also use html that contain " </a>';
?>
Method 2:<?php
echo "<b>Im HTML in php, but you can also use bellow:";
?>
<b>Still</b> useing html !!</b>
<?
echo "^ Nice ehh";
?>
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.