Re: Shifting banner on re-display

From: Date: Sat, 13 Nov 2004 22:02:41 +0000
Subject: Re: Shifting banner on re-display
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-201931@lists.php.net to get a copy of this message
Hi, Sunday, November 14, 2004, 2:00:08 AM, you wrote: AD> Hi, AD> 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, AD> shifts down by about an inch. I've isolated the cause to the <form action tag>>. AD> Simplified code for bad.php page: AD> <?php session_start(); ob_start(); ?> AD> /* html head style body tags */ AD> <form action="bad.php" method="post"> AD> <?php include("banner.php"); ?> AD> <input type="submit" name="submit" value="Add Names" AD> /* closing form body html tags */ AD> <?php AD> if($_POST['submit'] == "Add Names"){ AD> switch ($_SESSION['status']) : AD> case "Member" : AD> header("location: add-names.php"); AD> break; AD> default : AD> header("location: join.php"); AD> break; AD> endswitch; AD> } ?>> AD> Is there a workaround for this problem, or is this a normal occurence? AD> Any suggestions or pointers would be gratefully appreciated. AD> Tia, AD> Andre You could try this: <form action="bad.php" method="post" style="display: inline;"> -- regards, Tom

« previous php.general (#201931) next »