Shifting banner on re-display

From: Date: Sat, 13 Nov 2004 16:00:08 +0000
Subject: Shifting banner on re-display
Groups: php.general 
Request: Send a blank email to php-general+get-201921@lists.php.net to get a copy of this message
Hi, I have a very annoying problem with pages that re-display using the <form action tag>. On re-display the banner, which is set absolute position at 0px, shifts down by about an inch. I've isolated the cause to the <form action tag>. Simplified code for bad.php page: <?php session_start(); ob_start(); ?> /* html head style body tags */ <form action="bad.php" method="post"> <?php include("banner.php"); ?> <input type="submit" name="submit" value="Add Names" /* closing form body html tags */ <?php if($_POST['submit'] == "Add Names"){ switch ($_SESSION['status']) : case "Member" : header("location: add-names.php"); break; default : header("location: join.php"); break; endswitch; } ?> Is there a workaround for this problem, or is this a normal occurence? Any suggestions or pointers would be gratefully appreciated. Tia, Andre

« previous php.general (#201921) next »