Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Feb 2003
    Location
    munich, germany, old europe
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post "\n" in blacknorm

    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!

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #3
    New Coder
    Join Date
    Feb 2003
    Location
    munich, germany, old europe
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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" ![

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    Canada
    Posts
    253
    Thanks
    0
    Thanked 0 Times in 0 Posts
    3 things to try...

    \n\n

    or

    \n\r

    or

    <br>

  • #5
    New Coder
    Join Date
    Feb 2003
    Location
    munich, germany, old europe
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    it worx thx man


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •