PHP Echo Syntax

Discussion in 'PHP' started by deepman007, Jun 23, 2008.

  1. #1
    Hi

    Why is it that my css for this P class does not show up ?

    echo "<p class=\"message\">Thank you for signing up our newsletter</p>";
    Code (markup):
    Thank you
     
    deepman007, Jun 23, 2008 IP
  2. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #2
    That's valid, and not a PHP error.

    Check your CSS.

    Dan

    p.s. Single quotes are better, and breaking out of PHP is better still.
    <?php echo '<p class="message">Thank you for signing up to our newsletter</p>'; ?>
     
    Danltn, Jun 23, 2008 IP
  3. deepman007

    deepman007 Peon

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you very much!
     
    deepman007, Jun 23, 2008 IP