HTML to PHP

Discussion in 'Programming' started by hawksrnm1, Feb 6, 2008.

  1. #1
    How do I convert a page that I have in HTML so that it is in PHP?
     
    hawksrnm1, Feb 6, 2008 IP
  2. Dondon2d

    Dondon2d Peon

    Messages:
    3,193
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Put echo and quotes before and after the HTML code. Lol. Why exactly do you need to convert it?
     
    Dondon2d, Feb 6, 2008 IP
  3. EGS

    EGS Notable Member

    Messages:
    6,078
    Likes Received:
    438
    Best Answers:
    0
    Trophy Points:
    290
    #3
    Here's exact code..

    <?php echo ' <div class="myjawn">This is the HTML output</div>
    
    ';
    
    ?>
    Code (markup):
     
    EGS, Feb 6, 2008 IP
  4. fairuz.ismail

    fairuz.ismail Peon

    Messages:
    232
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    simply rename the page to .php

    example: you have abc.html ...just rename this file to abc.php .. thats all
     
    fairuz.ismail, Feb 6, 2008 IP
  5. hawksrnm1

    hawksrnm1 Peon

    Messages:
    371
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I am adding a dynamic code that need PHP/.

     
    hawksrnm1, Feb 7, 2008 IP