<script> function AjaxFormRequest(result_id,former,url) { /// тут ваш код return false } </script> <form action="http://" onsubmit="return AjaxFormRequest('result_div_id', 'former', 'submit.php')"> </form>