Reply to Re: HTML call

Your name:

Reply:


Posted by reb on 07/26/06 05:29

Le 24/07/2006 23:43, Pat a écrit :
> I have a question in regards to the use of php and html. The question
> is: can someone write a script separate from the html page and then call
> the script in like in a css style and use the values in the html page?
> If so how?
>
> I am just learning php and am not ignorant to programming, but I would
> use a function or created class in the separate file but how would you
> call the php file into the html file is what's killing me.
>
> I hope that makes sense and I hope someone can at least point me in the
> right direction to find the answer; because, to me putting all the code
> in an html document is redundant especially on the oop side.

You can call a php script from your HTML with an inline frame ; you'll
get the generated content of the php file :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test</title>
</head>
<body>
<p>Lorem ipsum...
<iframe src="test.php"></iframe>
</body>
</html>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация