Chiedo scusa...
Questa è l'inclusione:
codice:
<script type="text/javascript">
function load_post()
{
var limit=0, splitted;
limit = document.getElementById('i_load_post').value;
if(limit>=0)
{
$.ajax({
type: "GET",
url: "system/div_refresh/index_load_post.php",
data: "limit="+limit",
success: function(risul)
{
risul = execJS(risul);
splitted = risul.split("[/end_post][start_count]");
document.getElementById('d_load_post').innerHTML+=splitted[0];
}
});
}
}
</script>
Questo è il form:
Codice PHP:
<form method='post' name="$form_comment">
<textarea id="$id_comment_a" class="eAd_Post_Cmt" name="testo_form" onkeyup="Contar($id_post,'post','$id_comment_a','$id_comment_b','Caratteri: {CHAR}',400);"></textarea>
<div id="eAd_Post_Cmt_b"><a onclick="javascript:post_comment_reset($id_post);" style="cursor:pointer">[img]close.png[/img]</a></div>
<input type="hidden" name="id_comment" value="$id_post"/>
</p>
<div style="float:left"><input type="submit" id="$input_comment" name="$input_comment" value="Invia" class="button_ok_disabled text2" disabled/></div>
<div style="float:right"><span id="$id_comment_b" class="text1 minitext" style="font-weight:bold">Caratteri: 400</span></div>
<div style="clear:both">
</div>
</form>
e la lettura la faccio così
Codice PHP:
if(isset($_POST[$input_comment])) {......