Hi
I have an unusual problem.
I've developed a website using a mixture of PHP, javascript and XHTML. The site works fine on my PC, using either Firefox or Internet Explorer.
I've sent the code to a colleague, but he can't get it to work, although he seems to have the same software and settings as me. When I look at the source code through his browser, the bulk of it is missing, as follows:
<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>ESRU Temperature Display Website: DTI Data</title>
<link type = "text/css" rel = "stylesheet" href = "styles/styles.css" />
<SCRIPT language="javascript" type "text/javascript" >
<!--
function reload_first(form)
{
//relaod the page using the data selected from the first drop-down box
var site_val=form.site_sel.options[form.site_sel.options.selectedIndex].value;
self.location='site_sel.php?site_sel='+site_val;
}
function reload_second(form)
{
//relaod the page using the data selected from the second drop-down box
var site_val=form.site_sel.options[form.site_sel.options.selectedIndex].value;
var sens_val=form.sens_sel.options[form.sens_sel.options.selectedIndex].value;
self.location='site_sel.php?site_sel='+site_val+'&sens_sel='+sens_val;
}
function reload_third(form)
{
//relaod the page using the data selected from the third drop-down box
var site_val=form.site_sel.options[form.site_sel.options.selectedIndex].value;
var sens_val=form.sens_sel.options[form.sens_sel.options.selectedIndex].value;
var devs_val=form.devs_sel.options[form.devs_sel.options.selectedIndex].value;
self.location='site_sel.php?site_sel='+site_val+'&sens_sel='+sens_val+
'&devs_sel='+devs_val;
}
function reload_fourth(form)
{
//relaod the page using the data selected from the third drop-down box
var site_val=form.site_sel.options[form.site_sel.options.selectedIndex].value;
var sens_val=form.sens_sel.options[form.sens_sel.options.selectedIndex].value;
var devs_val=form.devs_sel.options[form.devs_sel.options.selectedIndex].value;
var chan_val=form.chan_sel.options[form.chan_sel.options.selectedIndex].value;
self.location='site_sel.php?site_sel='+site_val+'&sens_sel='+sens_val+
'&devs_sel='+devs_val+'&chan_sel='+chan_val;
}
function reload()
{
self.location = 'site_sel.php';
}
function redirect()
{
self.location = 'date_sel.php';
}
-->
</script>
</head>
<?php_track_vars?>
<body>
<table class = "t1">
<tr><td><a href = "http://www.esru.strath.ac.uk/"><img src = "Images/esru.png" alt = "ESRU logo"/></a></td>
<td><p class = "header1">ESRU Temperature Graphing Utility:<br /> DTI Data</p></td>
<td><a href = "http://www.strath.ac.uk/"><img src = "Images/strath.png" alt = "University of Strathclyde logo"/></a></td></tr>
</table>
The first bit all appears OK, but the main part of the code (see below) doesn't appear when I view the source through the browser (although I can verify that it's there with a text editor)
<?php
$existing_array = $_SESSION["arrval"];
if($existing_array != null)
$existing_array = unserialize($existing_array);
.....//goes on for many more lines
Can anyone shed any light on this?