Tried the whitespace thing. Makes no difference.
The first page is an html page that has this at the top;
<?PHP
session_start();
?>
then is all html with a form to login. Passes the userid and password to this page.
<?php
Session_start();
require 'isis_dbcon.php';
$sql = "SELECT *
FROM ISIS_TUSER WHERE userid='$userid' AND userpassword='$password'";
$sql_result = mssql_query($sql,$connection)
or die("Couldn't execute query.");
if (@mssql_num_rows($sql_result) != 0){
$row = mssql_fetch_array($sql_result);
$slxid = $row["USERSLXID"];
$greeting = ' ';
$venid = $row["VENID"];
$userid = $row["USERID"];
session_register("venid");
session_register("userid");
session_register("verified_user");
session_register("slxid");
session_register("greeting");
} else {
$verified_user = 'You have entered an invalid password or username. Please try again';
session_register("verified_user");
session_unregister("slxid");
session_unregister("greeting");
}
require 'isis_dbclo.php';
Header("Location: isis_main.php?".sid);
?>
the 2 require calls are just database connection and closure. nospaces, 2 lines each (this is not it however, even with this information directly in the page I have this problem)
isis_main.php is;
<?
session_start();
require 'header.php';
?>
<table>
<td width="26%">
(continue html here)
header.php contains the following;
<?php
Session_start();
$today = date("F d, Y");
if (isset ($greeting)){
require 'isis_dbcon.php';
$sql = "SELECT *
FROM contact WHERE CONTACTID='$slxid'";
$sql_result = mssql_query($sql,$connection)
or die("Couldn't execute query.");
$row = mssql_fetch_array($sql_result);
$lname = $row["LASTNAME"];
$fname = $row["FIRSTNAME"];
$greeting = "$fname";
session_register("greeting");
}
echo "
<body background='images/background.gif' topmargin='0' leftmargin='10'>
<table border='0' cellpadding='0' cellspacing='0' bordercolor='#111111' width='100%'
id='AutoNumber1'>
<tr>
<td width='100%'>
<table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse'
bordercolor='#111111' width='100%'>
<tr>
<td width='100%' colspan='3'>
<img border='0' src='images/cgisis.jpg' width='320' height='80'></td>
</tr>
<tr>
<td width='33%' background='images/milieu.gif'>
<table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse'
bordercolor='#111111' width='100%'>
<tr>
<td width='11%'>
<p align='left'>
<img border='0' src='images/boutg.gif' width='15' height='30'></td>
<td width='89%'><font face='Arial Black' size='1'>Welcome back $greeting
</font></td>
</tr>
</table>
</td>
<td width='33%' background='images/milieu.gif'> </td>
<td width='34%' background='images/milieu.gif'>
<table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse'
bordercolor='#111111' width='100%'>
<tr>
<td width='88%'>
<p align='right'><font face='Arial Black' size='1'>$today</font></td>
<td width='12%'>
<p align='right'>
<img border='0' src='images/boutd.gif' width='15' height='30'></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>";
?>
sorry the post is so long, but this is just driving me bonkers...
-mike