/[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.2, Wed Mar 12 21:17:50 2008 UTC revision 1.2.2.1, Wed Oct 7 23:19:40 2009 UTC
# Line 1  Line 1 
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.
# Line 15  With 'non-clean' urls: Line 15  With 'non-clean' urls:
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    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.2.2.1

  ViewVC Help
Powered by ViewVC 1.1.2