Help please
Posted: Tue Dec 15, 2009 5:11 pm
I have been running my php locally with XAMPP.
When i uploaded my file onto the server it wouldnt act like it did when i was running it locally
What i want to do is display a table with values from an array showing within the table if the post value is correctly posted.
I just want to know whether or not my code is correct, Is IE rendering my file different from that of a server?
As i have absolutely no experiance what so ever in PHP it could be a probelm due to where i am placing files maybe its not reading my CSS file or something
anyways
Heres my code
When i uploaded my file onto the server it wouldnt act like it did when i was running it locally
What i want to do is display a table with values from an array showing within the table if the post value is correctly posted.
I just want to know whether or not my code is correct, Is IE rendering my file different from that of a server?
As i have absolutely no experiance what so ever in PHP it could be a probelm due to where i am placing files maybe its not reading my CSS file or something
anyways
Heres my code
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style type="text/css">
Generic Classes to control year color scheme, outline used to ensure border shows in IE and mozilla */
.year_1, .year_2, .year_3, .year_4, .year_5 {outline:thin groove;color:#111111}
.year_1 {background-color:yellow;}
.year_2 {background-color:#FFCC00;}
.year_4 {background-color:#FF9900;}
.year_5 {background-color:#FF6600;}
</style>
<LINK href="coursestyles.css" title="css" rel="stylesheet" type="text/css">
<title>Course Map</title>
</head>
<body>
<?php
$course = $_POST["course"];
if ($course!="Computing for Internet and Multimedia:UCAS G401"){
echo "Page under construction";
}else{
$module_name ['CM2013'] = "Professional Development in Computing";
$module_name ['CM3004'] = "Systems Development";
$module_name ['CM3006'] = "Internet Based Programming";
$module_name ['CM3008'] = "Object Oriented Programming";
$module_name ['CM3017'] = "Database Systems";
$module_name ['CM3032'] = "Project Management in a Computing Enviroment";
$module_name ['CM3056'] = "Interactive Multimedia";
$module_name ['CM3ELECTIVE'] = "Elective 1";
$module_name ['CM4003'] = "Intranet Systems Development";
$module_name ['CM4008'] = "Human Computer Interaction";
$module_name ['CM4018'] = "Honours Individual Project (Part 1)";
$module_name ['CM4ELECTIVE'] = "Elective ";
$module_name ['CM4002'] = "Information Strategy Planning";
$module_name ['CM4018'] = "Honours Individual Project (Part 2)";
$module_name ['CM4062'] = "Multimedia Programming";
$module_desc['CM2013'] = "To provide a broad range of professional knowledge and skills needed for a career in the Computing and IT industries.";
$module_desc['CM3004'] = "To provide the student with the ability to assess the different theories and methods of analysis and design that are utilised in the development of computer systems for industry.";
$module_desc['CM3006'] = "To enable the student to explore the key concepts of internet systems development.To develop the students' skill in the practical design, development and management of internet systems.";
$module_desc['CM3008'] = "To provide the student with the ability to explain, design, develop and test simple object-oriented programming applications.";
$module_desc['CM3017'] = "To provide the student with the ability to evaluate modern database architectures as well as analysing and applying techniques used in Database Management Systems. To provide the student with the ability to analyse and apply relational algebra operations. To provide the student with the ability to implement database applications.";
$module_desc['CM3032'] = "To provide the student with the ability to complete an investigation into a Computing topic and to undertake the associated project management activities as a member of a project group.";
$module_desc['CM3056'] = "To provide the student with the ability to research,plan, evaluate and create a multimedia application, with emphasis on common industry practice and the various media types involved.";
$module_desc['CM3ELECTIVE'] = "Module description is entirely based on the elective choice made";
$module_desc['CM4004'] = "To enable the student to research a problem area and undertake a substantial information technology (IT) or information systems project which will integrate the student’s knowledge and understanding from a variety of appropriate sources and disciplines. To enable the student to go through the stages from requirements gathering to post-implementation evaluation, and develop a solution to professional standards following a set of prescribed deadlines.";
$module_desc['CM4008'] = "To provide the student with a knowledge of the conceptual and theoretical aspects of HCI required to support future technological developments and the practical skills currently required to develop interfaces to interactive computer systems.";
$module_desc['CM4018'] = "To enable the student to undertake a substantial professional (or equivalent) information technology (IT) or software engineering project in order to acquire a comprehensive understanding of the problem and its domain. To enable the student to develop a solution from specification through to implementation and report on the results within a fixed time frame.";
$module_desc['CM4ELECTIVE(1)'] = "Module description is entirely based on the elective choice made";
$module_desc['CM4002'] = "To provide the student with the ability to assess and support business goals through Information Strategy Planning.";
$module_desc['CM4018'] = "To enable the student to undertake a substantial professional (or equivalent) information technology (IT) or software engineering project in order to acquire a comprehensive understanding of the problem and its domain. To enable the student to develop a solution from specification through to implementation and report on the results within a fixed time frame.";
$module_desc['CM4062'] = "To provide the student with the ability to evaluate and apply programming techniques to multimedia systems using appropriate standards.";
$module_desc['CM4ELECTIVE(2)'] = "Module description is entirely based on the elective choice made";
$G401[0]= "Professional Development in Computing";
$G401[1] = "Systems Development";
$G401[2] = "Internet Based Programming";
$G401[3] = "Object Oriented Programming";
$G401[4] = "Database Systems";
$G401[5] = "Project Management in a Computing Enviroment";
$G401[6] = "Interactive Multimedia";
$G401[7] = "Elective 1";
$G401[8] = "Intranet Systems Development";
$G401[9] = "Human Computer Interaction";
$G401[10] = "Honours Individual Project (Part 1)";
$G401[11] = "Elective 1";
$G401[12] = "Information Strategy Planning";
$G401[13] = "Honours Individual Project (Part 2)";
$G401[14] = "Multimedia Programming";
$G401[15] = "Elective 2";
$keys = array_keys($module_name);
print_r($module_name);
?>
<table>
<tr><td rowspan="2"></td>
<th><div class="year_1">Year 1</div></th>
<th><div class="year_2">Year 2</div></th>
<th><div class="year_4">Year 4</div></th>
<th><div class="year_5">Year 5</div></th>
</tr>
<!-- Row 1 -->
<tr><td class="year_1"><span class="module_no"> </span><br>
<span class="module_name"> </span></td>
<td class="year_2"><span class="module_no"> </span><br>
<span class="module_name"> </span></td>
<td name="CM2013" class="year_4"><span class="module_no"> <?php echo $keys[0]?> </span><br>
<span CLASS="module_name"> <?php echo $G401[0]?> </span></td>
<td name="CM4003" class="year_5"><span class="module_no"> <?php echo $keys[8]?> </span><br>
<span class="module_name"> <?php echo $G401[8]?> </span></td>
</tr>
<!-- Semester 1 -->
<tr><td rowspan="2"><div style="background-color:#FF6600;font-size:110%;
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
-moz-transform: rotate(-90deg);
-webkit-transform: rotate(-90deg);">
Semester 1</div></td>
<!-- Row 2 of -->
<td class="year_1"><span class="module_no"> </span><br>
<span class="module_name"> </span></td>
<td class="year_2"><span class="module_no"> </span><br>
<span class="module_name"></span></td>
<td name="CM3004" class="year_4"><span class="module_no"> <?php echo $keys[1]?> </span><br>
<span class="module_name"> <?php echo $G401[1]?> </span></td>
<td name="CM4008" class="year_5"><span class="module_no"><?php echo $keys[9]?></span><br>
<span class="module_name"> <?php echo $G401[9]?> </span></td>
</tr>
<!-- Row 3 -->
<tr><td class="year_1"><span class="module_no"> </span><br>
<span class="module_name"> </span></td>
<td class="year_2"><span class="module_no"> </span><br>
<span class="module_name"> </span></td>
<td name="CM3006" class="year_4"><span class="module_no"> <?php echo $keys[2]?> </span><br>
<span class="module_name"> <?php echo $G401[2]?> </span></td>
<td name="CM4018" class="year_5"><span class="module_no"> <?php echo $keys[10]?> </span><br>
<span class="module_name"> <?php echo $G401[10]?> </span></td>
</tr>
<!-- Row 4 -->
<tr><td></td>
<td class="year_1"><span class="module_no"> </span><br>
<span class="module_name"> </span></td>
<td class="year_2"><span class="module_no"> </span><br>
<span class="module_name"> </span></td>
<td name="CM3008" class="year_4"><span class="module_no"> <?php echo $keys[3]?> </span><br>
<span class="module_name"><?php echo $G401[3]?></span></td>
<td name="CM4ELECTIVE" class="year_5"><span class="module_no"> <?php echo $keys[11]?> </span><br>
<span class="module_name"><?php echo $G401[11]?></span></td>
</tr>
<tr><td rowspan="2"></td>
<th><hr></th><th><hr></th><th><hr></th><th><hr></th>
</tr>
<!-- Row 5 -->
<tr><td class="year_1"><span class="module_no"> </span><br>
<span class="module_name"> </span></td>
<td class="year_2"><span class="module_no"> </span><br>
<span class="module_name"> </span></td>
<td name="CM3017" class="year_4"><span class="module_no"> <?php echo $keys[4]?> </span><br>
<span class="module_name"> <?php echo $G401[4]?> </span></td>
<td name="CM4002" class="year_5"><span class="module_no"> <?php echo $keys[12]?> </span><br>
<span class="module_name"> <?php echo $G401[12]?> </span></td>
</tr>
<!-- Row 6 -->
<tr><td rowspan="2"><div style="background-color:#FF6600;font-size:110%;
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
-moz-transform: rotate(-90deg);
-webkit-transform: rotate(-90deg);">
Semester 2</div></td>
<td class="year_1"><span class="module_no"> </span><br>
<span class="module_name"> </span></td>
<td class="year_2"><span class="module_no"> </span><br>
<span class="module_name"> </span></td>
<td name="CM3032" class="year_4"><span class="module_no"> <?php echo $keys[5]?> </span><br>
<span class="module_name"> <?php echo $G401[5]?> </span></td>
<td name="CM4018" class="year_5"><span class="module_no"> <?php echo $keys[10]?> </span><br>
<span class="module_name"> <?php echo $G401[10]?> </span></td>
</tr>
<!-- Row 7 -->
<tr><td class="year_1"><span class="module_no"> </span><br>
<span class="module_name"> </span></td>
<td class="year_2"><span class="module_no"> </span><br>
<span class="module_name"> </span></td>
<td name="CM3056" class="year_4"><span class="module_no"> <?php echo $keys[6]?> </span><br>
<span class="module_name"> <?php echo $G401[6]?> </span></td>
<td name="CM4062" class="year_5"><span class="module_no"> <?php echo $keys[13]?> </span><br>
<span class="module_name"> <?php echo $G401[14]?> </span></td>
</tr>
<!-- Row 8 -->
<tr><td></td>
<td class="year_1"><span class="module_no"> </span><br>
<span class="module_name"> </span></td>
<td class="year_2"><span class="module_no"> </span><br>
<span class="module_name"> </span></td>
<td name="CM3ELECTIVE" class="year_4"><span class="module_no"> <?php echo $keys[7]?> </span><br>
<span class="module_name"> <?php echo $G401[7]?> </span></td>
<td name="CM4ELECTIVE" class="year_5"><span class="module_no"> <?php echo $keys[11]?> </span><br>
<span class="module_name"> <?php echo $G401[15]?> </span></td>
</tr>
</table>
<?php }?>
</body>
</html>