jQuery form submit
<pre><code>img="loader.gif (editeg link because i need 10 more reps to add img src tag)";

var pot=true;
function trimite(){
  if(pot==true){
   pot=false;
   jQuery("#loader").hide().html(img).slideDown();
   jQuery("#sec_code").fadeOut("slow");
   jQuery("#log_res").slideUp();
   jQuery.ajax({
    url:"register.php",
    type:"post",
    data:'utilizator='+jQuery("#utilizator").val()+'&amp;parola='+jQuery("#parola").val()+'&amp;reparola='+jQuery("#reparola").val()+'&amp;mail='+jQuery("#mail").val()+'&amp;security_code='+jQuery("#security_code_x").val(),
    success:function(msg){
     jQuery("#loader").hide().html(img).slideUp();
     jQuery("#log_res").hide().html(msg).slideDown();
     jQuery("#sec_code").html('&lt;img style="margin-top: -2px;" src="captcha.php?'+Math.random()+'" /&gt;').fadeIn("slow");
     pot=true;
    }
   });
  } else return false;
 }
</code></pre>

<p>The form is: </p>






edited image link, can't post img tag




<p>when i click on submit, i get on the same page page.php?utilizator=somevalue&amp;pass=somevalue etc, it doesn't makes the request on register.php .. why , i don't know, on js console, i get failed to load resource, but it exists .. it worked a while, but i don't know what i modified on it so it can't succesfully run.. 
Cheers, Edi.</p>
