Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #4762 > unrolled thread

Space mistery

Started byJohn <john_takethisoff@agdp.de>
First post2012-02-08 18:00 +0100
Last post2012-02-09 03:25 +0100
Articles 10 — 6 participants

Back to article view | Back to comp.lang.php


Contents

  Space mistery John <john_takethisoff@agdp.de> - 2012-02-08 18:00 +0100
    Re: Space mistery Jerry Stuckle <jstucklex@attglobal.net> - 2012-02-08 13:06 -0500
      Re: Space mistery mamboo <mambooo> - 2012-02-13 00:00 +0100
        Re: Space mistery Jerry Stuckle <jstucklex@attglobal.net> - 2012-02-12 18:05 -0500
          Re: Space mistery Luuk <luuk@invalid.lan> - 2012-02-13 19:32 +0100
    Re: Space mistery "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-02-08 19:57 +0100
    Re: Space mistery Jeff North <jnorthau@yahoo.com.au> - 2012-02-09 11:20 +1100
      Re: Space mistery John <john_takethisoff@agdp.de> - 2012-02-09 01:59 +0100
        Re: Space mistery Jeff North <jnorthau@yahoo.com.au> - 2012-02-09 13:16 +1100
          Re: Space mistery John <john_takethisoff@agdp.de> - 2012-02-09 03:25 +0100

#4762 — Space mistery

FromJohn <john_takethisoff@agdp.de>
Date2012-02-08 18:00 +0100
SubjectSpace mistery
Message-ID<jgu9mr$g1r$1@speranza.aioe.org>
Hello again,

does anybody have a clue of what could be the problem in the following 
code :

// calling sequence

<html><body>
<FONT face="Arial Black" size="3" color="#0000FF">
<center>
ATTENZIONE<br></FONT>
</body></html>
<?php
include('tabelle/ATTE/ATTE6/ATTE6.php');
include('tabelle/ATTE/ATTE7/ATTE7.php');
include('tabelle/ATTE/ATTE8/ATTE8.php');
?>


ATTE6, ATTE7 + ATTE8 have a similar code, differing only those parts 
carrying the ID name (ATTEx) i.e. text copied and replaced :


// main progam ATTE8.php

<?php
require('ATTE6init.php'); // initialization of variables
$tab_html = '<center>&nbsp;<br>&nbsp;<br><table><tr><td><FONT 
face="Arial" size="2">';
echo $tab_html; // if I comment this line, the title touches the table 
above <only God knows why>

$tab_html .= '<span style="background-color: 
#FFFF00">'.$titolo.'</span></FONT></td></tr></table>';
echo $tab_html;

$tab_html = '<table border="1"><tr><td>'.$cross.'</td>';
//echo $tab_html;

for ($j=0; $j < $numcols; $j++) {
	$tab_html .= '<td align="right" bgcolor="#DDDDFF"><b>'.$coltit[$j] . 
'</b></td>'  ;
}
$tab_html .= '</tr>';
echo $tab_html;
//  End titoli di colonna


the symptons are that if one displays more than one table, one after the 
other, as specified in the calling sequence, the space between the title 
and the table is increased by 3 o 4 spaces, while it shouldnt have any 
additional space  (&nbsp;<br>).

The last table however is always displayed correctly, so in the case on 
one single table, there's no perception of this error.

Thanks for any feedback.

John.

[toc] | [next] | [standalone]


#4763

FromJerry Stuckle <jstucklex@attglobal.net>
Date2012-02-08 13:06 -0500
Message-ID<jgudjb$afr$2@dont-email.me>
In reply to#4762
On 2/8/2012 12:00 PM, John wrote:
> Hello again,
>
> does anybody have a clue of what could be the problem in the following
> code :
>
> // calling sequence
>
> <html><body>
> <FONT face="Arial Black" size="3" color="#0000FF">
> <center>
> ATTENZIONE<br></FONT>
> </body></html>
> <?php
> include('tabelle/ATTE/ATTE6/ATTE6.php');
> include('tabelle/ATTE/ATTE7/ATTE7.php');
> include('tabelle/ATTE/ATTE8/ATTE8.php');
> ?>
>
>
> ATTE6, ATTE7 + ATTE8 have a similar code, differing only those parts
> carrying the ID name (ATTEx) i.e. text copied and replaced :
>
>
> // main progam ATTE8.php
>
> <?php
> require('ATTE6init.php'); // initialization of variables
> $tab_html = '<center>&nbsp;<br>&nbsp;<br><table><tr><td><FONT
> face="Arial" size="2">';
> echo $tab_html; // if I comment this line, the title touches the table
> above <only God knows why>
>
> $tab_html .= '<span style="background-color:
> #FFFF00">'.$titolo.'</span></FONT></td></tr></table>';
> echo $tab_html;
>
> $tab_html = '<table border="1"><tr><td>'.$cross.'</td>';
> //echo $tab_html;
>
> for ($j=0; $j < $numcols; $j++) {
> $tab_html .= '<td align="right" bgcolor="#DDDDFF"><b>'.$coltit[$j] .
> '</b></td>' ;
> }
> $tab_html .= '</tr>';
> echo $tab_html;
> // End titoli di colonna
>
>
> the symptons are that if one displays more than one table, one after the
> other, as specified in the calling sequence, the space between the title
> and the table is increased by 3 o 4 spaces, while it shouldnt have any
> additional space (&nbsp;<br>).
>
> The last table however is always displayed correctly, so in the case on
> one single table, there's no perception of this error.
>
> Thanks for any feedback.
>
> John.

Look at your generated html.  If it's what you expected, try an HTML 
newsgroup.  If it isn't, figure out why your PHP code isn't generating 
the HTML you expect.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#4795

Frommamboo <mambooo>
Date2012-02-13 00:00 +0100
Message-ID<4f3844ab$0$1387$4fafbaef@reader1.news.tin.it>
In reply to#4763
> Look at your generated html. If it's what you expected, try an HTML
> newsgroup. If it isn't, figure out why your PHP code isn't generating
> the HTML you expect.
>

Grazie al cazzo... troll di merda!

[toc] | [prev] | [next] | [standalone]


#4796

FromJerry Stuckle <jstucklex@attglobal.net>
Date2012-02-12 18:05 -0500
Message-ID<jh9gjn$jn5$1@dont-email.me>
In reply to#4795
On 2/12/2012 6:00 PM, mamboo wrote:
>
>> Look at your generated html. If it's what you expected, try an HTML
>> newsgroup. If it isn't, figure out why your PHP code isn't generating
>> the HTML you expect.
>>
>
> Grazie al cazzo... troll di merda!

ROFLMAO!  The troll doesn't like someone who directs a person to a more 
appropriate newsgroup.  Of course, this isn't the first time the troll 
has tried this!

But then what do you expect from an Italian who posts under a pseudonym 
but doesn't even know enough to use English in an English language 
newsgroup.  Fortunately, most Italians aren't that stoopid.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#4800

FromLuuk <luuk@invalid.lan>
Date2012-02-13 19:32 +0100
Message-ID<nj1o09-fv7.ln1@luuk.invalid.lan>
In reply to#4796
On 13-02-2012 00:05, Jerry Stuckle wrote:
> Fortunately, most Italians aren't that stoopid.

But some Americans are ......

;)

[toc] | [prev] | [next] | [standalone]


#4764

From"M. Strobel" <sorry_no_mail_here@nowhere.dee>
Date2012-02-08 19:57 +0100
Message-ID<9pfurvFpspU1@mid.uni-berlin.de>
In reply to#4762
Am 08.02.2012 18:00, schrieb John:
> Hello again,
> 
> does anybody have a clue of what could be the problem in the following code :
> 
> // calling sequence
> 
> <html><body>
> <FONT face="Arial Black" size="3" color="#0000FF">
> <center>
> ATTENZIONE<br></FONT>
> </body></html>
> <?php
---cut

> Thanks for any feedback.
> 
> John.

Frankly, your code is a mess. I stopped reading at the point of the cut, where you
write "end body" "end html", and then start your html output script.

It's no use trying to find unexpected spaces in messed up HTML. Clean it up first.
And then verify if at http://validator.w3.org/. And then come back.

/Str.

[toc] | [prev] | [next] | [standalone]


#4767

FromJeff North <jnorthau@yahoo.com.au>
Date2012-02-09 11:20 +1100
Message-ID<0t26j7pab28c63hat9o9ce8ovo0ti44b6v@4ax.com>
In reply to#4762
On Wed, 08 Feb 2012 18:00:26 +0100, in comp.lang.php John
<john_takethisoff@agdp.de>
<jgu9mr$g1r$1@speranza.aioe.org> wrote:

>| Hello again,
>| 
>| does anybody have a clue of what could be the problem in the following 
>| code :
>| 
>| // calling sequence

This is really a HTML question.

No DTD so browser will render in quirks mode.
http://en.wikipedia.org/wiki/Quirks_mode

>| <html><body>

<font> deprecated

>| <FONT face="Arial Black" size="3" color="#0000FF">

<center> deprecated
Should be a H1 element

>| <center>
>| ATTENZIONE<br></FONT>
>| </body></html>

end of html document. (Unfortunately browsers do process items after
the </html> element.)

>| <?php
>| include('tabelle/ATTE/ATTE6/ATTE6.php');
>| include('tabelle/ATTE/ATTE7/ATTE7.php');
>| include('tabelle/ATTE/ATTE8/ATTE8.php');
>| ?>
>| 
>| 
>| ATTE6, ATTE7 + ATTE8 have a similar code, differing only those parts 
>| carrying the ID name (ATTEx) i.e. text copied and replaced :
>| 
>| 
>| // main progam ATTE8.php
>| 
>| <?php
>| require('ATTE6init.php'); // initialization of variables
>| $tab_html = '<center>&nbsp;<br>&nbsp;<br><table><tr><td><FONT 
>| face="Arial" size="2">';
>| echo $tab_html; // if I comment this line, the title touches the table 
>| above <only God knows why>
>| 
>| $tab_html .= '<span style="background-color: 
>| #FFFF00">'.$titolo.'</span></FONT></td></tr></table>';
>| echo $tab_html;

Why have the above table? Why not a H2 element.
 
>| $tab_html = '<table border="1"><tr><td>'.$cross.'</td>';
>| //echo $tab_html;
>| 
>| for ($j=0; $j < $numcols; $j++) {
>| 	$tab_html .= '<td align="right" bgcolor="#DDDDFF"><b>'.$coltit[$j] . 
>| '</b></td>'  ;
>| }

<td align and bgcolor deprecated

>| $tab_html .= '</tr>';
>| echo $tab_html;
>| //  End titoli di colonna

No closing table element.

>| the symptons are that if one displays more than one table, one after the 
>| other, as specified in the calling sequence, the space between the title 
>| and the table is increased by 3 o 4 spaces, while it shouldnt have any 
>| additional space  (&nbsp;<br>).
>| 
>| The last table however is always displayed correctly, so in the case on 
>| one single table, there's no perception of this error.
>| 
>| Thanks for any feedback.
>| 
>| John.

[toc] | [prev] | [next] | [standalone]


#4768

FromJohn <john_takethisoff@agdp.de>
Date2012-02-09 01:59 +0100
Message-ID<jgv5pq$mpr$1@speranza.aioe.org>
In reply to#4767
Am 09.02.2012 01:20, schrieb Jeff North:
> On Wed, 08 Feb 2012 18:00:26 +0100, in comp.lang.php John
> <john_takethisoff@agdp.de>
> <jgu9mr$g1r$1@speranza.aioe.org>  wrote:
>
>> | Hello again,
>> |
>> | does anybody have a clue of what could be the problem in the following
>> | code :
>> |
>> | // calling sequence
>
> This is really a HTML question.
>
> No DTD so browser will render in quirks mode.
> http://en.wikipedia.org/wiki/Quirks_mode
>
>> |<html><body>
>
> <font>  deprecated
>
>> |<FONT face="Arial Black" size="3" color="#0000FF">
>
> <center>  deprecated
> Should be a H1 element
>
>> |<center>
>> | ATTENZIONE<br></FONT>
>> |</body></html>
>
> end of html document. (Unfortunately browsers do process items after
> the</html>  element.)
>
>> |<?php
>> | include('tabelle/ATTE/ATTE6/ATTE6.php');
>> | include('tabelle/ATTE/ATTE7/ATTE7.php');
>> | include('tabelle/ATTE/ATTE8/ATTE8.php');
>> | ?>
>> |
>> |
>> | ATTE6, ATTE7 + ATTE8 have a similar code, differing only those parts
>> | carrying the ID name (ATTEx) i.e. text copied and replaced :
>> |
>> |
>> | // main progam ATTE8.php
>> |
>> |<?php
>> | require('ATTE6init.php'); // initialization of variables
>> | $tab_html = '<center>&nbsp;<br>&nbsp;<br><table><tr><td><FONT
>> | face="Arial" size="2">';
>> | echo $tab_html; // if I comment this line, the title touches the table
>> | above<only God knows why>
>> |
>> | $tab_html .= '<span style="background-color:
>> | #FFFF00">'.$titolo.'</span></FONT></td></tr></table>';
>> | echo $tab_html;
>
> Why have the above table? Why not a H2 element.

I wanted to 'mark' the text with yellow underground. I thought <H2> only 
change the style but without 'marking'.

I use <table> in this case because it seems the only way to have the 
title where I really want it : just above the table.
Any other solution puts unwanted spaces everywhere else but not where I 
want it.

I am having difficulty with mixed code html + php, but sometimes that is 
the only option available. Unless one uses a template.

Anybody can suggest an easy template to use instead of messing up mith 
mixed code html+php ???

>
>> | $tab_html = '<table border="1"><tr><td>'.$cross.'</td>';
>> | //echo $tab_html;
>> |
>> | for ($j=0; $j<  $numcols; $j++) {
>> | 	$tab_html .= '<td align="right" bgcolor="#DDDDFF"><b>'.$coltit[$j] .
>> | '</b></td>'  ;
>> | }
>
> <td align and bgcolor deprecated

How come ? I have really a 'table' (matrix of numbers) to display and 
THAT is about the ONLY reason left for using  <table> and not <div>. Right ?

>
>> | $tab_html .= '</tr>';
>> | echo $tab_html;
>> | //  End titoli di colonna
>
> No closing table element.

it comes later. I didnt write the whole code because I thought the error 
must be in this piece of code.
>

[toc] | [prev] | [next] | [standalone]


#4769

FromJeff North <jnorthau@yahoo.com.au>
Date2012-02-09 13:16 +1100
Message-ID<k6a6j71gb9m15h51jaheg7i8j0c6a3mkd3@4ax.com>
In reply to#4768
On Thu, 09 Feb 2012 01:59:50 +0100, in comp.lang.php John
<john_takethisoff@agdp.de>
<jgv5pq$mpr$1@speranza.aioe.org> wrote:

>| Am 09.02.2012 01:20, schrieb Jeff North:
>| > On Wed, 08 Feb 2012 18:00:26 +0100, in comp.lang.php John
>| > <john_takethisoff@agdp.de>
>| > <jgu9mr$g1r$1@speranza.aioe.org>  wrote:
>| >

[snip]

You will continue having problems until you define the DTD.

>| > Why have the above table? Why not a H2 element.
>| 
>| I wanted to 'mark' the text with yellow underground. I thought <H2> only 
>| change the style but without 'marking'.

You use styles to change that, as you did with your code.

>| I use <table> in this case because it seems the only way to have the 
>| title where I really want it : just above the table.
>| Any other solution puts unwanted spaces everywhere else but not where I 
>| want it.

Use the table caption element i.e. 
<table>
<caption style="background-color:#FFFF00;">your caption goes
here</caption>
<tr><td>.....

>| I am having difficulty with mixed code html + php, but sometimes that is 
>| the only option available. Unless one uses a template.
>| 
>| Anybody can suggest an easy template to use instead of messing up mith 
>| mixed code html+php ???

No need for templates it is just the markup you are using.

>| >> | $tab_html = '<table border="1"><tr><td>'.$cross.'</td>';
>| >> | //echo $tab_html;
>| >> |
>| >> | for ($j=0; $j<  $numcols; $j++) {
>| >> | 	$tab_html .= '<td align="right" bgcolor="#DDDDFF"><b>'.$coltit[$j] .
>| >> | '</b></td>'  ;
>| >> | }
>| >
>| > <td align and bgcolor deprecated
>| 
>| How come ? I have really a 'table' (matrix of numbers) to display and 
>| THAT is about the ONLY reason left for using  <table> and not <div>. Right ?

The W3C specification deprecated these attributes in HTML 4. While the
browser still 'honor' them you shouldn't.

The styling should be placed within a separate stylesheet, or within
the <head></head> of the current page.

It *does* make it a lot easier to change the design later on, if
needed.

>| >> | $tab_html .= '</tr>';
>| >> | echo $tab_html;
>| >> | //  End titoli di colonna
>| >
>| > No closing table element.
>| 
>| it comes later. I didnt write the whole code because I thought the error 
>| must be in this piece of code.
>| >
>| 

This is not php related so, may I suggest, that you subscribe to a
HTML newsgroup
alt.infosystem.www.authoring.html
alt.html

[toc] | [prev] | [next] | [standalone]


#4770

FromJohn <john_takethisoff@agdp.de>
Date2012-02-09 03:25 +0100
Message-ID<jgvaq2$f7$1@speranza.aioe.org>
In reply to#4769
Am 09.02.2012 03:16, schrieb Jeff North:
>
> This is not php related so, may I suggest, that you subscribe to a
> HTML newsgroup
> alt.infosystem.www.authoring.html
> alt.html

OK. Thanks a lor for all the feedback and advice !

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web