Ciao a tutti,
ho un problema con una variabile che carico in un campo hidden , del tipo
codice:
<input name="articolo_form" type="hidden" id="articolo_form2" value="<? echo $articolo_form; ?>">
solo che la variabile $articolo_form , talvolta contiene html... e quindi quando mi trovo una cosa del genere
Codice PHP:
<?
//nella pagina php
$articolo_form = "<center><table width=\"10%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"12%\"><img name=\"pro_contro_r2_c1\" src=\"pro_contro_r2_c1.gif\" width=\"15\" height=\"38\" border=\"0\" alt=\"\"></td>
<td width=\"58%\"><img name=\"pro_contro_r2_c2\" src=\"pro_contro_r2_c2.gif\" width=\"363\" height=\"38\" border=\"0\" alt=\"\"></td>
<td width=\"30%\"><img name=\"pro_contro_r2_c3\" src=\"pro_contro_r2_c3.gif\" width=\"15\" height=\"38\" border=\"0\" alt=\"\"></td>
</tr>
<tr>
<td background=\"pro_contro_r3_c1.gif\">_</td>
<td background=\"pro_contro_r3_c2.gif\">
- Il Nu-Metal/Industrial Metal si adegua benissimo all\'atmosfera Cyber-Dark del film
- Artisti di alta caratura
- Grande prova strumentale del Reverendo</p>
</td>
<td background=\"pro_contro_r3_c3.gif\">_</td>
</tr>
<tr>
<td><img name=\"pro_contro_r4_c1\" src=\"pro_contro_r4_c1.gif\" width=\"15\" height=\"18\" border=\"0\" alt=\"\"></td>
<td><img name=\"pro_contro_r4_c2\" src=\"pro_contro_r4_c2.gif\" width=\"363\" height=\"18\" border=\"0\" alt=\"\"></td>
<td><img name=\"pro_contro_r4_c3\" src=\"pro_contro_r4_c3.gif\" width=\"15\" height=\"18\" border=\"0\" alt=\"\"></td>
</tr>
</table></center>";
?>
<input name="articolo_form" type="hidden" id="articolo_form2" value="<? echo $articolo_form; ?>">
a questo punto mi include nel campo hidden tutto quel codice html che ovviamente mi incasina lo script... come posso fare ???