Forum Moderators: coopster

Message Too Old, No Replies

include problem

invisible < br >

         

c0nsur

5:41 pm on Aug 20, 2003 (gmt 0)

10+ Year Member



hi guys

i have a weird problem
actually i include a file in an other php file


<td width="190" align="right" valign="top" class="textsmall">
<? include("login.php");?>
</td>

in dreamweaver theres no spacebetween this and the other <TD>
but when i look at it in IE the like a <br> just under the
<? include("login.php");?>

i think its probably a <form> problem but there is any way i could control this?

here is the login.php code

<form name="form1" method="post" action="" class="textsmall">
<table width="185" height="92" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="1" background="images/greenline.gif"><img src="images/greenline.gif" width="1" height="1"></td>
<td valign="top"><table width="184" height="92" border="0" cellpadding="1" cellspacing="1">
<tr>
<td colspan="2" align="center" class="textsmall"><strong>votre compte
site-clicks</strong></td>
</tr>
<tr>
<td class="textsmall">identifiant</td>
<td align="center"> <input name="textfield" type="text" size="15" class="textsmall"></td>
</tr>
<tr>
<td class="textsmall">mot de passe</td>
<td align="center"> <input name="textfield2" type="password" size="15" class="textsmall"></td>
</tr>
<tr>
<td>&nbsp; </td>
<td align="center" class="textsmall"> <input type="submit" name="Submit" value="Submit" class="textsmall">
</td>
</tr>
<tr>
<td colspan="2" align="center" class="textsmall">mot de passe perdu?</td>
</tr>
</table></td>
</tr>
</table></form>

thats it can u help me?

coopster

6:14 pm on Aug 20, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I tried the code you posted and had no problems in IE6 nor NN7.1. Are you saying there is something like a break in the source code when you View Source? Or is there actually a visible break in the displayed form?

c0nsur

6:30 pm on Aug 20, 2003 (gmt 0)

10+ Year Member



it breaks the line
so there something like

-----------------
myimage.jpg
-----------------

SPACE like a invisible<br>from source

-----------------
other image
-----------------

instead of
-----------------
myimage.jpg
-----------------
-----------------
otherimage.jpg
-----------------

Sinner_G

6:41 pm on Aug 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Check that there are no spaces at the end of the source code for your include (either after the </form> or on the line below).

pageoneresults

6:43 pm on Aug 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



<td>&nbsp; </td>
<td align="center" class="textsmall"> <input type="submit" name="Submit" value="Submit" class="textsmall">
</td>

Hanging <td>s and unwarranted spaces may cause issues. Change the above to...

<td>&nbsp;</td>
<td align="center" class="textsmall"><input type="submit" name="Submit" value="Submit" class="textsmall"></td>

Try not to let your tags break. In fact, I force all of my tags on one line so there are no issues such as this. Normally it is the </p> and </td> tags hanging that cause these invisible <br> that you are referring to.

[edited by: pageoneresults at 6:53 pm (utc) on Aug. 20, 2003]

coopster

6:45 pm on Aug 20, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I don't believe you have an include problem, I think it is a style issue, particularly how images are displayed and aligned within block elements and inline elements. Take a look at this link [devedge.netscape.com ] as it is quite useful.

MWpro

6:52 pm on Aug 20, 2003 (gmt 0)

10+ Year Member



both coopster and pageoneresults are right. Either put all the closing tags on one line, or set the image to display: block in your css.

c0nsur

7:10 pm on Aug 20, 2003 (gmt 0)

10+ Year Member



nope i tried everything like that and it didnt work

so i put my form somewhere else and it worked! lol

weird thing :)