Php Code inside a link does not work

  •  02-26-2008, 3:56 PM

    Php Code inside a link does not work

    Hello,
     
    For severals links on my website I need to include a snippet php code, but the editor translate the html code like this code is written in Normal mode.
     
    For example :
     
    If I set this :

         $editor->text = '<a target="_blank" href="<?php echo "test"; ?>"> myPhp link </a>'


    The editor return =>  '<a target="_blank" href="%3C?php%20echo%20"test";%20?%3E"> myPhp link </a>'
     
    How can I avoid these conversions ?
     
    Thanks in advance,
    alES
View Complete Thread