Index: prepopulate.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/prepopulate/prepopulate.module,v retrieving revision 1.5.2.2 diff -u -r1.5.2.2 prepopulate.module --- prepopulate.module 17 Nov 2008 17:52:57 -0000 1.5.2.2 +++ prepopulate.module 29 Sep 2009 18:22:06 -0000 @@ -27,10 +27,10 @@ function prepopulate_form_alter($form_id, &$form) { $node = $form['#node']; - 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.1.2.3 diff -u -r1.1.2.3 USAGE.txt --- USAGE.txt 12 Mar 2008 21:18:41 -0000 1.1.2.3 +++ USAGE.txt 29 Sep 2009 18:22:06 -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 --------------------------------