Page 1 of 1

How do you integrate php into an html page? Newby question,

Posted: Sat Mar 07, 2009 5:02 am
by geester1
Sorry about this, but I intend on putting php into a webpage that is html, can anyone tell me what i need to edit the pages and to add the contact form that is in php.

Once again, thank you.

Re: How do you integrate php into an html page? Newby question,

Posted: Sat Mar 07, 2009 5:12 am
by susrisha
using php tags..

Code: Select all

 
<html>
<!--- all the html code-->
 
<?php
//all the php code//
?>
</html>
 

Re: How do you integrate php into an html page? Newby question,

Posted: Mon Mar 09, 2009 7:12 am
by senthil babu
first i cant get ur question correctly. In html we have to save page name like page.htm , for php we have to save page like page.php... ok, the extension differs right. (.php and .htm)

when we saved file name as .php , it will allow html functions inside the page too.
but if we saved file .htm and insert php codings inside the page, it makes problem



see u again :)

Re: How do you integrate php into an html page? Newby question,

Posted: Mon Mar 09, 2009 7:17 am
by papa
If you want to display php in an html page you might need to change your apache config file: httpd.config