I am new web development,I am trying to use Html,Java script and php together. See the code below...
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function sayHello()
{
alert("Hello World!");
}
</script>
</head>
<body>
<h3>Good Evening Friends</h3>
<?php
echo "Inside php script";
?>
<form>
<input type="Button" name="B utton" value="b utton" onclick="sayHello()"/>
</form>
</body>
</html>
The above code when run on xampp server is not producing the expected result, the code inside php script is not printed why? If I am using wrongly tell the correct useage?
Also tell me which server side language and date base to use if javascript and html are used for front end?