i'm new and couldn't seem to index $form_state correctly to get the data filled in from a webform, so i did a "var_dump($form_state)". there were 15 fields on the form. the fourth field was "City" and the fifth was "State". i noticed (twice) that their indices into $form_state["values"]["submitted"] (all fields numbered from 1 to 15) were reversed, i.e., the value entered into the field with index of 4 (which should have been City) was the state and vice versa. in the dump, the City value displayed before the State value. i expect that if indexed in code, which i have not done, $form_state["values"]["submitted"][4] would give me the state and $form_state["values"]["submitted"][5] would give me the city. if so, this would not jive with the order in which they appear on the form or what one would expect having entered them into the form that way. the other two ways i could access the field values entered ($form_state["values"]["submitted_tree"] and $form_state["clicked_button"]["#post"]["submitted"]) are indexed by the field names themselves (with underscores replacing blanks) and are fine.

the theme i am using is bluemarine. i have done no theming of my own.

the following is the dump after i edited it to make better sense out of it.

array(5)
{
["storage"]=> NULL
["submitted"]=> bool(true)
["values"]=> &array(8)
{
["submitted"]=> array(15)
{
[1]=> string(11) "abc company"
[2]=> string(11) "candi wease"
[3]=> string(15) "213 apollo road"
[5]=> string(7) "garland"
[4]=> string(5) "Texas"
[6]=> string(12) "972-123-4567"
[7]=> string(0) ""
[8]=> string(16) "candk2@tx.rr.com"
[9]=> string(9) "username1"
[10]=> string(0) ""
[11]=> string(0) ""
[12]=> string(9) "password1"
[13]=> string(0) ""
[14]=> string(0) ""
[15]=> string(3) "100"
}
["details"]=> array(4)
{
["email_subject"]=> string(1) "1"
["email_from_name"]=> string(7) "default"
["email_from_address"]=> string(1) "8"
["nid"]=> string(1) "9"
}
["op"]=> string(6) "Submit"
["submit"]=> string(6) "Submit"
["form_build_id"]=> string(37) "form-8227882dc887bd7d0be8315c054756fc"
["form_token"]=> string(32) "53dc8f58721c7d3875ac98f02bb816b4"
["form_id"]=> string(21) "webform_client_form_9"
["submitted_tree"]=> array(15)
{
["company_name"]=> string(11) "abc company"
["contact_name"]=> string(11) "candi wease"
["street_address"]=> string(15) "213 apollo road"
["city"]=> string(7) "garland"
["state"]=> string(5) "Texas"
["phone"]=> string(12) "972-123-4567"
["fax"]=> string(0) ""
["email"]=> string(16) "candk2@tx.rr.com"
["user_name_1"]=> string(9) "username1"
["password_1"]=> string(9) "password1"
["user_name_2"]=> string(0) ""
["password_2"]=> string(0) ""
["user_name_3"]=> string(0) ""
["password_3"]=> string(0) ""
["default_radius"]=> string(3) "100"
}
}
["clicked_button"]=> array(18)
{
["#type"]=> string(6) "submit"
["#value"]=> string(6) "Submit"
["#weight"]=> int(1000)
["#post"]=> array(6)
{
["submitted"]=> array(15)
{
["company_name"]=> string(11) "abc company"
["contact_name"]=> string(11) "candi wease"
["street_address"]=> string(15) "213 apollo road"
["city"]=> string(7) "garland"
["state"]=> string(5) "Texas"
["phone"]=> string(12) "972-123-4567"
["fax"]=> string(0) ""
["email"]=> string(16) "candk2@tx.rr.com"
["user_name_1"]=> string(9) "username1"
["password_1"]=> string(9) "password1"
["user_name_2"]=> string(0) ""
["password_2"]=> string(0) ""
["user_name_3"]=> string(0) ""
["password_3"]=> string(0) ""
["default_radius"]=> string(3) "100"
}
["details"]=> array(3)
{
["email_subject"]=> string(1) "1"
["email_from_name"]=> string(7) "default"
["email_from_address"]=> string(1) "8"
}
["form_build_id"]=> string(37) "form-0b98d60889eeccf704a08183cf0b382a" ["form_token"]=> string(32) "53dc8f58721c7d3875ac98f02bb816b4" ["form_id"]=> string(21) "webform_client_form_9"
["op"]=> string(6) "Submit"
}
["#programmed"]=> bool(false)
["#tree"]=> bool(false)
["#parents"]=> array(1) { [0]=> string(6) "submit" }
["#array_parents"]=> array(1) { [0]=> string(6) "submit" }
["#processed"]=> bool(false)
["#description"]=> NULL
["#attributes"]=> array(0) { }
["#required"]=> bool(false)
["#input"]=> bool(true)
["#name"]=> string(2) "op"
["#button_type"]=> string(6) "submit"
["#executes_submit_callback"]=> bool(true)
["#process"]=> array(1) { [0]=> string(16) "form_expand_ahah" }
["#id"]=> string(11) "edit-submit"
}
["redirect"]=> NULL
}