Support Forums

Full Version: PHP to HTML?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
There's no PHP in that. PHP looks like this:
PHP Code:
<?PHP
(PHP code goes here)
?>
Yeah what bit there do you think is PHP...?? You can't just 'convert' PHP to HTML, PHP doesn't necessarily have to output HTML, or output anything for that matter.
(12-21-2009, 09:22 AM)Rob Wrote: [ -> ]There's no PHP in that. PHP looks like this:
PHP Code:
<?PHP
(PHP code goes here)
?>
There was:
A small snippet:
Code:
<a href="?p=home">Home</a>
      <span></span>
    </li>
    <li>
      <a href="?p=tools">Tools</a>
      <span></span>
    </li>
    <li>
      <a href="?p=community">Community</a>
That's not PHP. That's an HTML anchor tag (<a> </a>) where the href is telling the browser to go to:
Code:
http://thecurrenturl/?p=home
and
http://thecurrenturl/?p=tools
and
http://thecurrenturl/?p=community
(12-21-2009, 09:50 AM)Rob Wrote: [ -> ]That's not PHP. That's an HTML anchor tag (<a> </a>) where the href is telling the browser to go to:
Code:
http://thecurrenturl/?p=home
and
http://thecurrenturl/?p=tools
and
http://thecurrenturl/?p=community
That's what he was talking about.
(12-21-2009, 09:53 AM)Аноним Интерфейс Wrote: [ -> ]That's what he was talking about.

I know...that's why I answered it...
There is not a single bit of PHP in that document. It is all xhtml (html).
PURE XHTML
Quote:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

As you can read on the first comment line is XHTML
lol, who told you this was php?
(12-21-2009, 11:48 AM)ktmrider530 Wrote: [ -> ]lol, who told you this was php?

I think he saw the ?p in the anchor tag and thought it meant it was PHP.
Pages: 1 2 3