Subject Computer Science Web Development (HTML, XML, PHP, JavaScript, Adobe, Flash, etc.)

Question

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.

Solution Preview

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.

<html>
<head>
<style type="text/css">
p {
font-family: Sans-serif
}
</style>
</head>
<body><center>
<h2>Information in file Stored is </h2>

<?php
//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!");
fwrite($f, $name."\n");
fwrite($f, $email."\n");...

This is only a preview of the solution. Please use the purchase button to see the entire solution

Assisting Tutor

Related Homework Solutions

Website Development Problems
Homework Solution
$50.00
Computer Science
Website Development
Programming
Design
Tables
Images
Banners
CSS
HTML
Lists
Containers
Military Support
Navigation
Columns
Codes
Identifiers
Service Oriented Architecture (1180 words)
Homework Solution
$38.00
SOA
Web
Service
Oriented
Architecture
IT
W3C
Interoperabiliy
Technique
Solution
Redundancy
Isolation
Information
Component
HTML Forms
Homework Solution
$40.00
Computer Science
Web Development
HTML
CSS
Forms
Styles
Functions
Fields
Lists
Buttons
Options
Data
Statements
Tags
Variables
Login Credentials
Get help from a qualified tutor
Live Chats