hi, I have some heredoc on this way:
$foo = <<<bar
<form action="index.p hp" method="POST" name="user">
............... ............... ............... ............... ............... ..
HTML code here........... ............... ............... .....
............... ............... ............... ............... ..........
$lang = mysql_query("SE LECT * FROM lang where selected != '*'");
............... ............... ............... ............... ........
more PHP consults to mysql here
............... ............... ............... ..........
bar;
The question is how to escape the php code for display into HTML, what
I have done
is comment it with <!-- and --this works, but if I see the page
source code I can see
all the php code commented here, and obviously is insecure for the
system, anyone know what
to do?
thanks
$foo = <<<bar
<form action="index.p hp" method="POST" name="user">
............... ............... ............... ............... ............... ..
HTML code here........... ............... ............... .....
............... ............... ............... ............... ..........
$lang = mysql_query("SE LECT * FROM lang where selected != '*'");
............... ............... ............... ............... ........
more PHP consults to mysql here
............... ............... ............... ..........
bar;
The question is how to escape the php code for display into HTML, what
I have done
is comment it with <!-- and --this works, but if I see the page
source code I can see
all the php code commented here, and obviously is insecure for the
system, anyone know what
to do?
thanks
Comment