hai guys am new to this and dont know how to get the values from
jquery to a controller in php


i will xplain

my simple login form is as follows

//////////////////////////////////////////////////////////////////////
<form method="post" action="" id="customForm" name="customForm">
<table cellpadding="0" cellspacing="10">
<tr><td>User Name :</td><td><input id="username" name="username"
type="text" /></td><td><span id="usernameInfo"></span></td></tr>
<tr><td>Password :</td><td><input id="password" name="password"
type="password" /></td><td><span id="passwordInfo"></span>
</td></tr>
<tr><td colspan="2" align="right"><input id="submit" name="submit"
type="submit" value="Log In" /></td></tr>
</table>
</form>
//////////////////////////////////////////////////////////////////////

am using cakephp

and my javascript for this form is

/////////////////////////////////////////////////////////////

var form = $("#customForm");

form.submit(function(){
        if(validateUserName() &  validatePassword() )
                {
                         var options = {
                                                type: "POST",
                                                url:  
"http://localhost/jeffery/cake_jquery/users/login";,
                                                success:    function() {
                                                        alert('Thanks for your 
comment!');
                                                }
                                        };
                         var queryString = $('#customForm').formSerialize();
                         alert(queryString);
                         $(this).ajaxSubmit(options);
                     //return false;
                }
                return false;

});
////////////////////////////////////////////////////////////


my problem is am able to see my values before submitting thru
alert....
but i would like to see this value in my users controller with login
function

i dont know how???


Reply via email to