Codice PHP:
<form action="aggiornatesti.php?tipo=<? echo($tipo);?>&indice=<? echo($indice);?>&data=<? echo($data);?>oggetto=<? echo($oggetto);?>" method="post" name="aForm" id="aForm" ="return controllo_check()">
<input type="hidden" value="" name="testocheck1">
<input type="hidden" value="" name="testocheck2">
<input type="hidden" value="" name="testocheck3">
<table width=631 border=0 align="center" cellpadding=0 cellspacing=0 bgcolor="#6BA49E">
<tr >
<td colspan="3">[url="index.php"][img]immagini/stampasarda_r1_c1.jpg[/img][/url] </td>
</tr>
<tr align="left" valign="top">
<td width="5" height="603" rowspan="29">
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr> </tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr> </tr></table>
<table width="99%" border="0" cellspacing="1" cellpadding="1">
<tr> </tr></table>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr> </tr></table> </td>
<td width="621" rowspan="29"> <div align="center">
<table width="100%" height="250" border="0" cellpadding="1" cellspacing="1">
<tr>
<td height="15" colspan="2" valign="bottom"><div align="left">[b]Inserire data [/b]</div></td>
<td width="1%" rowspan="4" valign="bottom">[url="prova1.php?tipo=pro&elenco=morosi&indice=indice&oggetto=oggetto&testocheck1=testocheck1&testocheck2=testocheck2&testocheck2=testocheck2&testo=testo&testo2=testo2&testo3=testo3"][/url] </td>
</tr>
<tr>
<td width="47%" height="15" valign="bottom"><div align="left">
<input name="data" type="text" id="data" size="20" maxlength="10" value=" ">
</div></td>
<td width="52%" valign="bottom"><div align="right">
<button name="submit" type="submit" value="1">
[b]Anteprima [/b]</button>
</div></td>
</tr>
<tr>
<td height="15" valign="bottom"><div align="left">[b]
Inserire oggetto
[/b]</div></td>
<td height="15" valign="bottom"></td>
</tr>
<tr>
<td height="15" valign="bottom"><div align="left">
<textarea name="oggetto" rows="2" id="oggetto"></textarea>
</div></td>
<td height="15" valign="bottom"><div align="right">::[url="javascript:history.back();"]Torna indietro[/url] ::</div></td>
</tr>
<tr>
<td height="15" colspan="3" valign="bottom"><div align="center">[b]Testo 1 [/b]</div></td>
</tr>
<tr bgcolor="#CDE5E5">
<td height="137" colspan="3" >
<textarea name="testo" rows="8" cols="100" wrap="soft" onSelect="storeCaret(this);" onClick="storeCaret(this);" onKeyUp="storeCaret(this);" onDblClick="storeCaret(this);"><? echo "$row[testo]";?>
</textarea>
<INPUT TYPE="button" VALUE="Grassetto" onCLICK="insertAtCaret(this.form.testo, '[B]','[/B]');">
<INPUT TYPE="button" VALUE="Corsivo" onCLICK="insertAtCaret(this.form.testo, '[I]','[/I]');">
<INPUT TYPE="button" VALUE="Sottolineato" onCLICK="insertAtCaret(this.form.testo, '<U>','</U>');">
<INPUT TYPE="button" VALUE="a Capo" onCLICK="insertAtCaret1(this.form.testo, '
');">
<input type="checkbox" name="testocheck1" value="1">
Seleziona testo 1 </td>
</tr>
<tr>
<td height="15" colspan="3" valign="bottom"><div align="center">[b]Testo 2 [/b]</div></td>
</tr>
<tr bgcolor="#CDE5E5">
<td height="137" colspan="3" ><textarea name="testo2" rows="8" cols="100" wrap="soft" onSelect="storeCaret(this);" onClick="storeCaret(this);" onKeyUp="storeCaret(this);" onDblClick="storeCaret(this);"><? echo "$row2[testo]";?>
</textarea>
<INPUT TYPE="button" VALUE="Grassetto" onCLICK="insertAtCaret(this.form.testo2, '[B]','[/B]');">
<INPUT TYPE="button" VALUE="Corsivo" onCLICK="insertAtCaret(this.form.testo2, '[I]','[/I]');">
<INPUT TYPE="button" VALUE="Sottolineato" onCLICK="insertAtCaret(this.form.testo2, '<U>','</U>');">
<INPUT TYPE="button" VALUE="a Capo" onCLICK="insertAtCaret1(this.form.testo2, '
');">
<input type="checkbox" name="testocheck2" value="1" >
Seleziona testo 2 </td>
</tr>
<tr>
<td height="15" colspan="3" valign="bottom"><div align="center">[b]Testo 3 [/b]</div></td>
</tr>
<tr bgcolor="#CDE5E5">
<td height="137" colspan="3" ><textarea name="testo3" rows="8" cols="100" wrap="soft" onSelect="storeCaret(this);" onClick="storeCaret(this);" onKeyUp="storeCaret(this);" onDblClick="storeCaret(this);"><? echo "$row3[testo]";?>
</textarea>
<INPUT TYPE="button" VALUE="Grassetto" onCLICK="insertAtCaret(this.form.testo3, '[B]','[/B]');">
<INPUT TYPE="button" VALUE="Corsivo" onCLICK="insertAtCaret(this.form.testo3, '[I]','[/I]');">
<INPUT TYPE="button" VALUE="Sottolineato" onCLICK="insertAtCaret(this.form.testo3, '<U>','</U>');">
<INPUT TYPE="button" VALUE="a Capo" onCLICK="insertAtCaret1(this.form.testo3, '
');">
<input type="checkbox" name="testocheck3" value="1">
Seleziona testo 3 </td>
</tr>
</table>
</div></td>
<td width="5">
</p>
</td>
</tr>
</table>
</p>
</form>