Create a simple survey form that posts to a PHP script and then saves the form inputs to a file. The program should then respond with a display of the information contained in the file including the latest post. Modify your index.html page to include a link to this page. Your form should have a theme - in other words, don't just post a simple form post - make it worthy of putting on the web. You may review others code, but do not just duplicate other assignments or other examples.
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
<h2>Information in file Stored is </h2>
//write on file
$name = $_POST["name"];
$email = $_POST["email"];
$thought = $_POST["thought"];
//$myfile = 'yohannes33701.txt';
$f = fopen("survey.txt", "w") or die("Unable to open file!");
// The line above should be replaced with the line below to have the php program to look into the correct directory location.
// $f = fopen("c:\inetpub\wwwroot\logfiles\survey.txt", "w") or die("Unable to open file!");
This is only a preview of the solution. Please use the purchase button to see the entire solution