Im working on a survey in which data is entered into text boxes. I want to post the collected data in a table using php. Can someone help me with this? Below is the code for the pages. Perhaps someone could look at it and tell me what Im doing wrong.
This is the code for the survey page.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Problem Solving Style Assessment</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#e6dfa5">
<p align="left"><b>What's Your Problem Solving Style?</b><br>
<I> Instructions: Below are five sets of words or phrases. Trusting the first
thing that comes to mind, rank the items in each set from 1 through 4 (1 = most
preferred, 4 = least preferred). In each set, be sure to write a different number
next to each item. There are no right and wrong, or better or worse answers.
</I></p>
<form action="score.php" method="get">
<table width="82%" border="1">
<tr>
<td width="47%"><p>1. Things I consider in solving a problem:</p>
<p>a.
<input name="1a" type="text" size="5" maxlength="2">
Views of those involved<br>
b.
<input name="1b" type="text" size="5" maxlength="2">
Views of experts<br>
c.
<input name="1c" type="text" size="5" maxlength="2">
Relevant Data<br>
d.
<input name="1d" type="text" size="5" maxlength="2">
Personal Experience</p></td>
<td width="53%"><p>2. How I usually approach a problem:</p>
<p>a.
<input name="2a" type="text" size="5" maxlength="2">
Explore historical background<br>
b.
<input name="2b" type="text" size="5" maxlength="2">
Collect evidence<br>
c.
<input name="2c" type="text" size="5" maxlength="2">
Try a solution<br>
d.
<input name="2d" type="text" size="5" maxlength="2">
Talk to people</p></td>
</tr>
<tr>
<td><p>3. The way I like to interact with others:</p>
<p>a.
<input name="3a" type="text" size="5" maxlength="2">
Interview<br>
b.
<input name="3b" type="text" size="5" maxlength="2">
Challenge<br>
c.
<input name="3c" type="text" size="5" maxlength="2">
Convince<br>
d.
<input name="3d" type="text" size="5" maxlength="2">
Inform </p></td>
<td><p>4. I like problem solving best when I:</p>
<p>a.
<input name="4a" type="text" size="5" maxlength="2">
Take decisive action<br>
b.
<input name="4b" type="text" size="5" maxlength="2">
Weigh alternatives<br>
c.
<input name="4c" type="text" size="5" maxlength="2">
Gather complete data<br>
d.
<input name="4d" type="text" size="5" maxlength="2">
Explore the causes</p></td>
</tr>
<tr>
<td colspan="2"><p>5. The statement that best expresses my view of problem
solving:</p>
<p>a.
<input name="5a" type="text" size="5" maxlength="2">
"To be successful, a solution must be acceptable to everyone involved."<br>
b.
<input name="5b" type="text" size="5" maxlength="2">
"We have a lot to learn from our own past."<br>
c.
<input name="5c" type="text" size="5" maxlength="2">
"Solving most problems comes down to figuring out caus-and-effect
relationships."<br>
d.
<input name="5d" type="text" size="5" maxlength="2">
"In the real world, you often have to solve a problem without a
complete understanding of its cause.</p></td>
</tr>
</table>
<br>
<table>
<tr><td colspan = "2">
<input type ="submit">
<input type ="reset"></td></tr>
</table>
</form>
<p align="center"> </p>
</body>
</html>
This is the code for the php page to process it.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Problem Solving Style Assessment Scoring</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#e6dfa5">
<p><strong>PROBLEM SOLVING STYLE ASSESSMENT SCORING</strong><br>
<br>
<strong>SCORING INSTRUCTIONS:</strong> Each item in each of the five sets corresponds
to one of four problem solving styles. To score the survey, write your numerical
rankings in the appropriate spaces below. Then total the numbers in each column.<br>
The labels Diplomat, Professor, Detective, and Champion describe four typical
problem solving styles. Your lowest score on the survey indicates your preferred
style. The second lowest score indicates your “back-up style”. <br>
</p>
<table width="82%" border="1" align="center">
<tr>
<td><div align="center"><strong>Diplomat</strong></div></td>
<td><div align="center"><strong>Professor</strong></div></td>
<td><div align="center"><strong>Detective</strong></div></td>
<td><div align="center"><strong>Champion</strong></div></td>
</tr>
<tr>
<td><div align="center">print "$1a";</div></td>
<td><div align="center">print "$1b";</div></td>
<td><div align="center">print "$1c";</div></td>
<td><div align="center">print "$1d";</div></td>
</tr>
<tr>
<td><div align="center">print "$2d";</div></td>
<td><div align="center">print "$2a";</div></td>
<td><div align="center">print "$2b";</div></td>
<td><div align="center">print "$2c";</div></td>
</tr>
<tr>
<td><div align="center">print "$3c";</div></td>
<td><div align="center">print "$3d";</div></td>
<td><div align="center">print "$3a";</div></td>
<td><div align="center">print "$3b";</div></td>
</tr>
<tr>
<td><div align="center">print "$4b";</div></td>
<td><div align="center">print "$4c";</div></td>
<td><div align="center">print "$4d";</div></td>
<td><div align="center">print "$4a";</div></td>
</tr>
<tr>
<td><div align="center">print "$5a";</div></td>
<td><div align="center">print "$5b";</div></td>
<td><div align="center">print "$5c";</div></td>
<td><div align="center">print "$5d";</div></td>
</tr>
<tr>
<td>Total</td>
<td>Total</td>
<td>Total</td>
<td>Total</td>
</tr>
</table>
<p> </p>
<div align="center"></div>
<table width="81%" height="394" border="1" align="center">
<tr>
<td width="51%" valign="top">
<div align="center">
<p><strong>Diplomat</strong></p>
</div>
<div align="left"> Interested in reaching consensus<br>
Learns best from talking to those involved<br>
Often values opinions more than facts<br>
Focuses on practical solutions<br>
Can be very persuasive<br>
Needs to guard against “groupthink” and short- sightedness<br>
</div></td>
<td width="49%" valign="top">
<div align="center">
<p><strong>Professor</strong></p>
<p align="left"> Interested in underlying concepts and theories<br>
Seeks lots of historical background information<br>
Learns from relationships to other situations<br>
Values detachment from the issues<br>
Relates to others by giving and getting information<br>
Needs to guard against indecision and impracticality<br>
</p>
</div></td>
</tr>
<tr>
<td valign="top">
<div align="center">
<p><strong>Detective</strong></p>
<p align="left"> Interested in finding the cause of the problem<br>
Focuses on relevant facts<br>
Prefers to make direct observations of situations<br>
Tends to follow consistent method or process<br>
Tries to establish clear cause-and-effect relationships<br>
Needs to guard against inflexibility and insensitivity to people<br>
</p>
</div></td>
<td valign="top">
<div align="center">
<p><strong>Champion</strong></p>
<p align="left"> Interested in results<br>
Finds a solution by trying one out<br>
Wants to achieve success without help from others<br>
Trusts his or her instincts<br>
Good in crisis situations, where there is no time for analysis<br>
Needs to guard against impulsiveness and uncooperativeness<br>
</p>
</div></td>
</tr>
</table>
<p> </p>
</body>
</html>