Submit form with Ajax


Convert any HTML form over to ajax

PHP
<?php 

//bind button to ajax-form request
//gets the buttons's form and uses it.
$ajax->click("btnSubmit",$ajax->form("ajax.php?send_form/submit_form"));

?>
Controller:
PHP
<?php 

class send_form {
    
    function 
submit_form($form_fields)
    {
        
$ajax ajax();
        
        
$ajax->alert("Server Says....\n\t\t".print_r($form_fields,1));
    }
}

?>

Send form to server using ajax..

Submit Form

Send any form data through ajax...