I made a PHP script that will store what users put in forms into a text file. The the code shows its self thre were two files..
post.php:
<?php
$content = "|Name:| ".$_POST["name"]. "<br />" . "<br />" ."|Comments:| ".$_POST["comments"]. "<br />" . "<br />" . "<hr />";
$fp = fopen("store.html","x+");
fwrite($fp,$content);
fclose($fp);
echo "Thanks for Posting";
?>
and display.php:
<?php
$topcont = require("store.html");
echo $topcont;
?>
Does anyone know why when I look at the display.php a "1" shows after the <hr /> line.?
Thanks