Re: Shifting banner on re-display
| From: | M. Sokolewicz | Date: | Sat, 13 Nov 2004 15:59:57 +0000 |
| Subject: | Re: Shifting banner on re-display | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201923@lists.php.net to get a copy of this message | ||
such things never have anything to do with PHP, and everything to do with the browser and/or HTML source code. So... either consider it a browser bug, or a bug in your HTML (I'd guess #1, and if you're using IE, then you can't do anything about it)
- Tul
Andre Dubuc wrote:
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