Embedding HTML with PHP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yasmine
    New Member
    • Feb 2008
    • 64

    Embedding HTML with PHP

    Hi friends,
    Can anyone tell me,
    how can i embed html tags within the php script?

    <?php
    echo "HI";
    "<br><h1>Welcom e</h1>"
    ?>

    If I wrote as the above, the html tags doesn't works.
    I got "HI" only as my output.
    Is it right or wrong?
    Plz.... help me soon...

    Thanx and Regards....
  • gubbachchi
    New Member
    • Jan 2008
    • 59

    #2
    <?php
    echo "HI";
    "<br><h1>Welcom e</h1>"
    ?>

    Hi,

    try this.

    <?php
    echo "HI";
    ?>
    <br><h1>Welcome </h1>
    <?php
    //rest of your php code goes here
    ?>

    Comment

    Working...