| 1 |
$Id: USAGE.txt,v 1.1.2.2 2008/01/15 00:13:06 eafarris Exp $ |
$Id: USAGE.txt,v 1.2 2008/03/12 21:17:50 add1sun Exp $ |
| 2 |
|
|
| 3 |
See README.txt for a description of this module. |
See README.txt for a description of this module. |
| 4 |
See this documentation online at http://drupal.org/node/228167. |
See this documentation online at http://drupal.org/node/228167. |
| 15 |
http://www.example.com?q=node/add/content&edit[title]=This is the title |
http://www.example.com?q=node/add/content&edit[title]=This is the title |
| 16 |
|
|
| 17 |
|
|
| 18 |
|
POST Requests |
| 19 |
|
------------- |
| 20 |
|
Since Prepopulate uses the $_REQUEST variable, you have access to prepopulate |
| 21 |
|
form values from either GET request in the URL, or the form POST requests. In |
| 22 |
|
the below example, we prepopulate a node form's title based on a POST Request: |
| 23 |
|
|
| 24 |
|
<html><body> |
| 25 |
|
<form method="post" action="http://example.com/node/add/story"> |
| 26 |
|
Title: <input type="text" size="12" maxlength="12" name="edit[title]"> |
| 27 |
|
<input type="submit"> |
| 28 |
|
</form> |
| 29 |
|
</body></html> |
| 30 |
|
|
| 31 |
|
|
| 32 |
How to find what variable to set |
How to find what variable to set |
| 33 |
-------------------------------- |
-------------------------------- |
| 34 |
|
|