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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
geester1
Forum Newbie
Posts: 4
Joined: Tue Oct 14, 2008 12:42 am

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

Post 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.
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

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

Post by susrisha »

using php tags..

Code: Select all

 
<html>
<!--- all the html code-->
 
<?php
//all the php code//
?>
</html>
 
User avatar
senthil babu
Forum Newbie
Posts: 14
Joined: Tue Jan 27, 2009 12:20 am
Location: INDIA

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

Post 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 :)
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

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

Post by papa »

If you want to display php in an html page you might need to change your apache config file: httpd.config
Post Reply