Invalid tag start: "<?". Question marks should not start tag
Posted: Sun Apr 13, 2014 5:48 am
Hi All
I am new to php programming and my first attempt gave me the error above (using F12 ie developer tool).
The code in my file myfirstphp.html is:and the output in IE11 is:
[text]Hello world!
"?>
This is HTML only
Hello world again!
"; ?>
This is the second HTML section.
[/text]--------------------------------------------
which is not what I expected. I assume IE11 is not recognizing the <? start tag.
can anyone help?
thanks
kourosh
I am new to php programming and my first attempt gave me the error above (using F12 ie developer tool).
The code in my file myfirstphp.html is:
Code: Select all
!DOCTYPE html>
<html>
<head>
<title>Hello world script</title>
</head>
<body>
<?php echo "<p>Hello world!</p>"?>
<p>This is HTML only</p>
<?php
echo "<p>Hello world again!</p>";
?>
<p>This is the second HTML section.</p>
</body>
</html>
[text]Hello world!
"?>
This is HTML only
Hello world again!
"; ?>
This is the second HTML section.
[/text]--------------------------------------------
which is not what I expected. I assume IE11 is not recognizing the <? start tag.
can anyone help?
thanks
kourosh