Inserting php code

  •  09-14-2009, 12:09 AM

    Inserting php code

    Hello.
    It appears the editor changes php code.
    A simple example, enter in HTML Mode:
    <?php
      for( $i=0; $i<10; $i++ ) {
         echo "Hello -- $i<br>";
      }
    ?>
    View in Normal
    Return back to HTML Mode
    The code is changed to:
    <?php for( $ i="0;" $i<10; $i++ ) {
    echo "Hello -- $i<br />
    ";
    }
    ?>
    Depending on spaces between elements, the results are different..
    Simple Hello World, while it still it modified, will continue to work.
     
    Thanks.
    --john
     
View Complete Thread