A javascript routine receives a form, with variables as:
cmd = "update", lst[0] = "1", lst[1] = "3"
function js_admin_users_update(theForm) {
(this will display the form and its elements ok, variable name AND variable value) (proven ok).
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.