billbrach
-
Posts
3 -
Joined
-
Last visited
Never
Posts posted by billbrach
-
-
Hey, thanks !!
I don't have the liberty of changing it to a PHP extension file, 'cause its part of an existing program I adding features to.
Shouldn't the server output the text as HTML, which the browser would then understand ? If the server just output the text it would be fine too.
Also, my example is very simplified just to show the problem, I'm actually needing to output PHP vars. That part I have working. -
I have seen examples of this in web tutorials but I cannot make it work. Maybe it is a PHP server setting problem ??
I have a file called 'test.htm', contents in code window here:
[code]<html>
<head>
<title>PHP Test Page</title>
</head>
<body>
This is normal HTML code
<?php
print ("print some text here");
?>
<br>
Back into normal HTML
</body>
</html>
[/code]
This is what I would expect to see in my browser window:
[color=red]This is normal HTML code
print some text here
Back into normal HTML
[/color]
This is what is actually displayed:
[color=red]This is normal HTML code
Back into normal HTML
[/color]
Any ideas why the text '[color=red]print some text here[/color]' in the PHP print statement, is NOT displayed by the browser ??
Bill
[SOLVED] Embedding PHP code in HTML form
in HTML Help
Posted