Index: prepopulate.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/prepopulate/prepopulate.module,v retrieving revision 1.12 diff -u -r1.12 prepopulate.module --- prepopulate.module 17 Nov 2008 17:43:14 -0000 1.12 +++ prepopulate.module 29 Sep 2009 18:18:07 -0000 @@ -25,10 +25,10 @@ * Implementation of hook_form_alter(). */ function prepopulate_form_alter(&$form, $form_state, $form_id) { - if (isset($_GET['edit'])) { - foreach (array_keys((array)$_GET['edit']) as $getvar) { + if (isset($_REQUEST['edit'])) { + foreach (array_keys((array)$_REQUEST['edit']) as $getvar) { if (element_child($getvar) && !is_null($form[$getvar])) { - _prepopulate_get_walk($form[$getvar], $_GET['edit'][$getvar]); + _prepopulate_get_walk($form[$getvar], $_REQUEST['edit'][$getvar]); } } } Index: USAGE.txt =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/prepopulate/USAGE.txt,v retrieving revision 1.3 diff -u -r1.3 USAGE.txt --- USAGE.txt 23 Jun 2008 14:50:42 -0000 1.3 +++ USAGE.txt 29 Sep 2009 18:18:07 -0000 @@ -15,6 +15,20 @@ http://www.example.com?q=node/add/content&edit[title]=This is the title +POST Requests +------------- +Since Prepopulate uses the $_REQUEST variable, you have access to prepopulate +form values from either GET request in the URL, or the form POST requests. In +the below example, we prepopulate a node form's title based on a POST Request: + + +
+ Title: + +
+ + + How to find what variable to set --------------------------------