Topic: problem with passing 2 parameters..

I have 4 forms.
each with different names.
my php code determines their names by a function :

function forma($data, $type)

//$data is postdata of formfields
//$type is type of form


$xajax->register(XAJAX_FUNCTION, 'forma');

I call it by this method :

<form action="" method="POST" name="postform" id="postform" onsubmit="return forma_js(xajax.getFormValues('postform'), 'apps');">

I have javascript function to process it :

function forma_js(data, type)
    if (type == 'apps')
        xajax_forma(data, type);
        return false;

u see? my functions have 2 parameters, but xajax is not working when i am using both parameters.
it works when I remove 2nd parameters from all the functions..

maybe this is the problem :

xajax_forma(data, type);

am I doing something wrong ?? please help

Please help, this is really important.

Re: problem with passing 2 parameters..

k after debugging, i saw :

ERROR: ExecuteCommand (#0, ):
SyntaxError: unterminated string literal

and yeah , it only happens if any of the form fields are filled..
when i submit empty form, it works..