I have a form that gets loaded and submitted asynchronously. The submit function is hooked properly when the form is submitted. But what is throwing me off is that I thought the $form_state['values'] was supposed to contain the form values. But after a print_r( $form_state ) this is what I am getting. Is this is what is expected from a form submitted through AJAX POST?
code>
Array
(
[storage] =>
[submitted] => 1
[values] => Array
(
[title] => Another File
[description] => This is just another freakin' file.
[id] => 14
[op] => Save
[submit] => Save
[form_build_id] => form-5032443fca4a83d6f626382099cd0462
[form_token] => 5df240090741f2ce6b3644cf394de34d
[form_id] => docs_edit_file_form
)
[clicked_button] => Array
(
[#type] => submit
[#value] => Save
[#post] => Array
(
[title] => Another File........
[description] => This is just another freakin' file.
[id] => 14
[op] => Save
[form_build_id] => form-3bba2f2a63ef87dceda62017124b8178
[form_token] => 5df240090741f2ce6b3644cf394de34d
[form_id] => docs_edit_file_form
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => submit
)
[#array_parents] => Array
(
[0] => submit
)
[#weight] => 0.003
[#processed] =>
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#name] => op
[#button_type] => submit
[#executes_submit_callback] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#id] => edit-submit
)
[redirect] =>
)