Echo not working?

The data from the form of the HTM with PHP why echo don’t come out? Code is this:

In HTM.


< > HTML 

< body > 

< form or = "welcome. PHP" method = "post" > 

Name: < = "text" by input Name = "fname" / > 

Age: < = "text" by input name = "Age" / > 

"By input =" submit "/ > 

< / form > 

< / body > 

< / HTML >

In PHP. :

< > HTML 

< body > 

Welcome <? PHP echo $_POST [" fname "]; ? >!!!!! < br / > 

Are You?" PHP echo $_POST [" age "]; ? > it campaigns. 

< / body > 

< / HTML >

In HTM page input data only show: Welcome! After You were late this the old.

What are the reasons can lead to can’t echo?

It could be that there is nothing in $_POST to echo.

Also, your code is a little difficult to decipher, I can’t see the code to handle the form submission. Copy and paste the code inside code tags like this:

<code>
… your code here
</code>

but replace ‘<’ and ‘>’ with ‘[’ and ‘]’, then I’ll be able to see what’s going on.

Mike

or you could do it properly and put [ PHP ] [ /PHP ] around them (without the spaces) so that it hilights the code :wink: