...

View Full Version : "\n" in blacknorm



a|landargin
02-10-2003, 11:26 AM
hi

class=\"blacknorm\" >$TEXT


$TEXT is a text that i want to structure by using esc.seq. "\n" new line

but this has no effect in blacknorm.. the text does not become structured.. how can i type $TEXT , so that the esc.seq. has an effect?


thank you!

mordred
02-10-2003, 12:25 PM
blacknorm?

It sounds like your string contents of $TEXT are stored within single quotes, i.e. 'Here is a\ntext'. In single quotes, the newline \n has no effect. Change your single quotes to double quotes to take care of that problem.

a|landargin
02-10-2003, 03:55 PM
hm sorry but it was no matter of single quotes

...
for ...{
temp="temp+sArt[sArti]+'Euro \n '";
}
document.writeln('<input type="hidden" name="Artikel" value="'+temp+'">');
}

this is my javascript
--->phpfile

$Artikel = $HTTP_POST_VARS["Artikel"];


<TD class=\"blacknorm\" align=\"left\">$Artikel</TD>


the problem is that the \n has no effect in "blacknorm" ![

pb&j
02-10-2003, 05:38 PM
3 things to try...

\n\n

or

\n\r

or

<br>

a|landargin
02-10-2003, 07:05 PM
it worx thx man



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum