Re: Shifting banner on re-display
| From: | Andre Dubuc | Date: | Sat, 13 Nov 2004 22:27:16 +0000 |
| Subject: | Re: Shifting banner on re-display | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201932@lists.php.net to get a copy of this message | ||
On Saturday 13 November 2004 05:02 pm, you wrote:
> 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;">
Thanks Tom,
Tried it. No difference - still shifts. Seems like it is a browser problem.
Regards,
Andre