I have a field in a CCK node form that is hidden, and has a default value. What I'm trying to do is, when the user fills out the form, and submits it - I want to take the value of the hidden field and use it for a query.
My question is, how can I get this value? In PHP/HTML the $POST variable can be used. But, how can I do this in drupal?
I'm trying variations of this:
$form['#field_tst_timesheet']['value']
Anyone know how I can get at the value of this field?
Vfillby's answer:
Entering this:
$ts = field_tst_timesheet['0']['value'];
drupal_set_message($ts);
resulted in Parse error: syntax error, unexpected '[' ?