all,
I am developing a simple web site that contains a form page. The
apps utilized are apache 2.0.48, php 4.3.4 on redhat 8.0. I have
built a simple web form with one text box and a submit button. The
result of pressing the submit button should be php echo'ing the input
back to the screen. Attached is the tiny code snippet below:
----------------------------------------------
<html>
<head><title>PHP Forms Example</title></head>
<body>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="POST">
Type a string: <input type="text" name="myString"><br>
<input type="Submit" name="submit" value="Submit
Journal"><br><br>
</form>
<?php
print "You typed: $myString";
?>
</body>
</html>
----------------------------------------------
The problem I am experiencing is that the print statement doesn't
print anything back to output. If you notice, I changed the reference
PHP_SELF due to 4.2.x modifications in php.ini.
Any ideas?
Mike