Hi, I want to create a PHP file, so I go to notepad, create an HTML file with this code, to get a simple greeting on an HTML page in My Documents using Java Script, which I have some knowledge of, and PHP, of which I am a total beginner of.
P.S.
I don't know what a server is, how I can get one, and what it has to do with HTML or programming.
<head> <center>
<title>Data to PHP</title>
<script language = "JavaScript">
function loadIt()
{
var greet = "Hello from PHP.";
document.storage.alpha.value = greet;
}
</script>
</head>
<body onload = "loadIt()";>
<form name = "storage" method = get action = "greetings.php">
<input type = hidden name = "alpha">
<input type = submit>
</form>
<?php
echo $alpha;
?>
</body>