A javascript routine receives a form, with variables as:
cmd = "update", lst[0] = "1", lst[1] = "3"
<script>
function js_admin_users_update(theForm) {
x_p_admin_users_update(theForm);
(this will display the form and its elements ok, variable name AND variable value) (proven ok).
}
</script>
It calls a php routine(through an Ajax call):
<?php
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.