By Anonymous (not verified) on
Is it possible to pass a parameter to the form, when using drupal_get_form()?
I want to edit some data, and in order to retrieve it from the database I need the ID when the form is build. How do I achieve this?
Comments
Drupal 5?
In D5, the syntax is drupal_get_form($form_id, $arg1, $arg2...). In D4.7 I do not understand the question.
--
The news is Now Public | Drupal development: making the world better, one patch at a time. | A bedroom without a teddy is like a face without a smile.
--
Drupal development: making the world better, one patch at a time. | A bedroom without a teddy is like a face without a smile.
Outdated documentation
I use D5.0 and you were correct, it did work the way you described.
I got confused by outdated documentation (trying to use the Forms API quickstart is no good with D5.0), plus the drupal_get_form docs don't mention anything about passing args.
Anyway thx for helping out :)
what abt d6.0? how tp pass
what abt d6.0?
how tp pass parameter from source form and how to access at destination form.