This code works fine:
<?
echo "<center>";
echo "<title> Success! </title>";
echo "<img src='\gus\pics\php.gif>";
echo "</center>";
?>
This code does not:
<?
if ( @$_SESSION['login'] != "yes" )
{
header("Location:main.php");
exit();
}
$PHPSESSID = session_id();
header ("Pragma: no-cache");
header ("Cache-Control: no-cache, must-revalidate, max_age=0");
header ("Expires: 0");
// make sure $id exists
$id=$_GET['id'];
if ($id == "")
{
header("Location: index.php");
exit;
}
echo "<title> $id </title>";
echo "<center>";
echo"<img src='\gus\pics\php.gif>";
echo"</center>";
echo "<form action='index.php' method='post'>";
echo "<input type='hidden' name='PHPSESSID' value='$PHPSESSID'>";
echo "<input type='submit' value='Cancel'>";
echo "</form>";
?>
The image displays in example one. Image does not display in example two. Cancel button does show up there though. I should state this is on a Sidekick II (www.danger.com). Both of these examples work fine in M$ XP Pro IE V6.x though.
No matter what I seem to do, I can not get it to show up. Completely out of ideas now!
Brent