-
Refrasing javascript ajax php question?
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.
Similar Threads
-
By Schweppesale in forum AJAX
Replies: 0
Last Post: 10-20-2009, 03:03 PM
-
Replies: 2
Last Post: 02-22-2009, 12:51 PM
-
Replies: 1
Last Post: 09-28-2007, 07:17 AM
-
Replies: 1
Last Post: 07-16-2003, 11:42 AM
-
By Aditya K N in forum Web
Replies: 2
Last Post: 04-10-2001, 05:38 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|