FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » why php echo does not show up in HTML?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: why php echo does not show up in HTML? [message #181616 is a reply to message #181615] Fri, 24 May 2013 08:57 Go to previous messageGo to previous message
steve nospam is currently offline  steve nospam
Messages: 11
Registered: May 2013
Karma:
Junior Member
>
> I have found out by trial and error is that when I change the file
> extension to .php instead of .htm, then it works.
>
> However, I read that php can be used inside .htm? I do not want to
> change all my .htm file extensions to .php as that will break many
> links I have.

Another thing I found by trial and error. If I keep the file as .htm,
but change the code to the following, where a <P> was added to inside
the string. That is the only change made.

............................
<!DOCTYPE html>
<html>
<body>

<p>before


<?php echo '<p>do you see this?'; ?>

<p>after

</body>
</html>
....................


Then I get the echo ! But it looks not correct:

before do you see this?'; ?>

So I have no idea what is going on.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PHP Contact Form, mt-rand(), problem Validating 1 input
Next Topic: Parsing mbox files with Windows Php
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 17:04:43 GMT 2024

Total time taken to generate the page: 0.04640 seconds