/[drupal]/contributions/modules/prepopulate/USAGE.txt
ViewVC logotype

Diff of /contributions/modules/prepopulate/USAGE.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.4, Thu Oct 8 02:29:14 2009 UTC revision 1.5, Thu Oct 8 03:01:32 2009 UTC
# Line 1  Line 1 
1  $Id: USAGE.txt,v 1.2.2.1 2009/10/07 23:19:40 brauerranch Exp $  $Id: USAGE.txt,v 1.4 2009/10/08 02:29:14 brauerranch 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.
# Line 29  the below example, we prepopulate a node Line 29  the below example, we prepopulate a node
29  </body></html>  </body></html>
30    
31    
32    POST Requests
33    -------------
34    Since Prepopulate uses the $_REQUEST variable, you have access to prepopulate
35    form values from either GET request in the URL, or the form POST requests. In
36    the below example, we prepopulate a node form's title based on a POST Request:
37    
38    <html><body>
39      <form method="post" action="http://example.com/node/add/story">
40        Title: <input type="text" size="12" maxlength="12" name="edit[title]">
41        <input type="submit">
42      </form>
43    </body></html>
44    
45    
46  How to find what variable to set  How to find what variable to set
47  --------------------------------  --------------------------------
48    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.2