Welcome to WebmasterWorld Guest from 107.20.20.39

Forum Moderators: incrediBILL

Message Too Old, No Replies

Using both html and php on a page

   
2:59 am on Apr 17, 2010 (gmt 0)

5+ Year Member



Can you use both in a web page without them fighting?
1:43 pm on Apr 17, 2010 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Welcome to WebmasterWorld, Juantus.

Absolutely! Have a look at the tutorial [php.net].
5:29 am on Apr 18, 2010 (gmt 0)

5+ Year Member



U can use html directly in a php page but not the other way around.
6:25 am on Apr 20, 2010 (gmt 0)

WebmasterWorld Senior Member dreamcatcher is a WebmasterWorld Top Contributor of All Time 10+ Year Member



U can use html directly in a php page but not the other way around.


Thats not quite true. You can use .htaccess to parse html files as php.

dc
11:18 pm on Apr 22, 2010 (gmt 0)

WebmasterWorld Senior Member penders is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



Remember that all the PHP is processed server-side (it is contained within special tags which clearly marks it), so by the time the page gets to the clients browser, there is only HTML left.