How Do I Post My PHP, HTML or Other Code?

Discussion in 'PHP' started by bomsn, Sep 23, 2008.

Thread Status:
Not open for further replies.
  1. #1
    PHP forum members,

    It is very common for users having problems with scripts to submit questions related to a script or code they are working on. If you would like to submit your code, use these tags and your code will appear in a colored box and, in the case of PHP, parse it and color code the different structures of your script.

    For PHP code, enclose your code in [php ] and [/php ] tags (minus the spaces).

    PHP Code:
    <?php
    $message
    = "It'll look absolutely great and be parsed.";
    ?>

    For HTML markup, enclose your segment in [html ] and [/html ] tags (minus the spaces).

    HTML Code:
    <html><head> <title>WT Rocks!</title></head><body> <h1>I really love eating chicken!</h1></body></html>
    For all other code, enclose your segment in [code ] and [/code ] tags (minus the spaces).

    Code:
    var i = 9; for( n=0; n<9; n++ ) { print "Performing some task " + n + " times."; }

    I hope these instructions will help you post your code in a more attractive and readable manner and ultimately, to get your questions answered more completely.
    __________________
     
    bomsn, Sep 23, 2008 IP
  2. chmdznr

    chmdznr Active Member

    Messages:
    417
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #2
    thank you for the info-- newbie here..
     
    chmdznr, Sep 23, 2008 IP
Thread Status:
Not open for further replies.