A javascript routine receives a form, with variables as:
cmd = "update", lst[0] = "1", lst[1] = "3"
It calls a php routine(through an Ajax call):
function p_admin_users_update($form)
{
*** get the from data as "variable name", "variable value". ***
for all variables in form:
$txt .= variable, value
(say $txt = "variable name = variable value");
return ($txt);
}
?>
Question: How can I get the variable name and its value in the PhP routine?
Tried many ways... no avail. get_object_vars does not work: type says object, function does not.
2007-08-26
10:36:22
·
2 answers
·
asked by
just "JR"
7
in
Programming & Design