Sending a value to JavaScript I have set theme handler for a form in Drupal and this handler has a template file.
What is the easiest way to send a value from PHP to JavaScript in that include file?
The standard way to do this in Drupal is with drupal_add_js, using the "setting" type:

drupal_add_js(array('variableName' =&gt; 'value'), 'setting');


That will make the variable available on the JS side at Drupal.settings.variableName.