How do I print the name of the field for a submission a value? I have a custom webform confirmation page where I am print the submission values using the following:

&lt;?php print $submission-&gt;data[67][0]; ?&gt;


How can I print the title of the form field for the above data?
The Webform submission object's data parameter is a keyed array of component ID's/component submission data. The object doesn't contain the component field name so you'll need to reference its value through data attached on the node.

For example:

$webform_node = node_load($submission-&gt;nid);
foreach ($submission-&gt;data as $cid =&gt; $data) {
  print $webform_node-&gt;webform['components'][$cid]['name'] . ':' . $submission-&gt;data[$cid][0];
}