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 3 of 3

Thread: PHP and HTML

  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP and HTML

    I don't get how PHP makes HTML. Does it generate it automatically or do I hav to tell it what HTML to generate or what??????

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    PHP doesn't make html. You have to code the html you wish it to output.

  • #3
    Regular Coder
    Join Date
    Apr 2007
    Posts
    295
    Thanks
    0
    Thanked 19 Times in 19 Posts
    You tell it what to do
    PHP Code:
    <?php
    echo '<html>';
    echo 
    '<head><title>Hello</title></head>';
    echo 
    '<body>';

    echo 
    'Here is some content';

    echo 
    '</body>';
    echo 
    '</html>';
    ?>


  •  

    Posting Permissions

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