Forum Moderators: open

Message Too Old, No Replies

Using both html and php on a page

         

Juantus

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

10+ Year Member



Can you use both in a web page without them fighting?

coopster

1:43 pm on Apr 17, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, Juantus.

Absolutely! Have a look at the tutorial [php.net].

omegaman66

5:29 am on Apr 18, 2010 (gmt 0)

10+ Year Member



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

dreamcatcher

6:25 am on Apr 20, 2010 (gmt 0)

WebmasterWorld Senior Member 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

penders

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

WebmasterWorld Senior Member 10+ 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.