I am an absolute newbie to PHP - just started learning it a few days ago through Melonfire as suggested in the Beginers tutorial on this forum. Having reached the form processing part - I got stuck.
My browsers simply do not show the processed results. I tried Firefox, Opera, IE (all updated versions); I tried through PHP Editor (version2.22); I reinstalled PHP - latest version 5.2.5 - but no results.
If I write a direct PHP program and run it, it works well, phpinfo() also works well, but using form processing - just no way. I used the following code:
(1) FormProcessing.htm
<html>
<head></head>
<body>
<form action="message.php" method="post">
Enter your message: <input type="text" name="msg" size="30">
<input type="submit" value="Send">
</form>
</body>
</html>
(2) message.php
<html>
<body>
<?php
$input = $_POST['msg'];
echo "Your message is: ".$input;
?>
</body>
</html>
Can somebody please show me the way out?
|