Quote:00h, bacause i am not writing anything, its a function that counts the number of pages in a text.
That's why you should let that function fill a hidden input. Hidden inputs are being posted when you submit the form, or - in your case - when you serialize all form fields and pass the values to your controller via AJAX.
Did you work out the example I gave you?