From:             swift_mcviegh at hotmail dot com
Operating system: Windows 2000
PHP version:      4.3.3RC3
PHP Bug Type:     Output Control
Bug description:  Switch Function Causing Irregular Margin

Description:
------------
When I use the switch function, it pushes an odd margin into the scene.
Due to limits on the posting of code, i was not able to post the body tag,
required to reproduce the problem. I will post it below.
I wish to make a table cover the entire top of the screen, left to right.
Without using the switch function, it works fine. SO i dont know exactly
what happened.

Body Code:

<body bgcolor="#336699" leftmargin="0" topmargin="0" marginwidth="0"
marginheight="0">


Reproduce code:
---------------
<?php
 switch ($action)
 {
 case "bleh":
?>
<table width="870" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
    <td width="132" bgcolor="#003399">&nbsp;</td>
    <td width="594">&nbsp;</td>
    <td width="144" bgcolor="#003399">&nbsp;</td>
  </tr>
</table>
<?
  break;
  default:
?>
<a href="index.php?action=bleh">click this now!</a>
<?
  }
?>

Expected result:
----------------
I expect the table lined across the top to appear fully left to right with
NO margins

Actual result:
--------------
I get an odd push of the table, this ends up pushing the table to the left

-- 
Edit bug report at http://bugs.php.net/?id=25111&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25111&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25111&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25111&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25111&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25111&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25111&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25111&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25111&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25111&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25111&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25111&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25111&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25111&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25111&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25111&r=gnused

Reply via email to