File named .php but content is HTML still works ??!!
Posted: Fri Mar 14, 2014 9:52 pm
Hello everyone, I'm new to web development and I found something weird to me:
a file named ajax.php has content as following still works
Doesn't it have to be <?php ?> ??
a file named ajax.php has content as following still works
Code: Select all
<html>
<body>
Welcome <?php echo $_POST["name"]; ?><br>
Your email address is: <?php echo $_POST["email"]; ?>
</body>
</html>