SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2003
    Location
    London, UK.
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    $html = " ?> <html tags> <?php "; --- putting html in to strings

    Whats the easiest way of putting html in to a string?

    I was hoping this would work:



    $html = " ?>

    <html tags etc>

    ?> ";



    But it doesnt...


    James

  2. #2
    SitePoint Wizard
    Join Date
    Oct 2001
    Posts
    2,686
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    try
    PHP Code:
    $str '<h1>Heading</h1>And this text conatins some <b>HTML</b>'
    HTH

    -Helge

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2003
    Location
    London, UK.
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks!


    James


Bookmarks

Posting Permissions

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