{"id":9880,"date":"2009-10-26T14:21:22","date_gmt":"2009-10-26T18:21:22","guid":{"rendered":"https:\/\/www.bu.edu\/tech\/?page_id=9880"},"modified":"2011-05-22T20:18:20","modified_gmt":"2011-05-23T00:18:20","slug":"making-your-forms-work-with-ponyexpress","status":"publish","type":"page","link":"https:\/\/www.bu.edu\/tech\/services\/cccs\/websites\/people\/forms\/surveys\/making-your-forms-work-with-ponyexpress\/","title":{"rendered":"Making Your Forms Work with PonyExpress"},"content":{"rendered":"<h2>Step 1: Add special PonyExpress tags<\/h2>\n<p>Once you have your HTML survey form designed, you need to add some special    PonyExpress tags so that it will export the data correctly.<\/p>\n<p>Here are some generic tags. For detailed explanations of these tags, please                see the <a href=\"https:\/\/www.bu.edu\/tech\/services\/cccs\/websites\/people\/forms\/ponyexpress-overview\/\">PonyExpress pages<\/a>.<\/p>\n<blockquote><p><code>&lt;form method=\"post\" action=\"\/htbin\/ponyexpress2\"&gt;<br \/>\n&lt;input type=\"hidden\" name=\"mail_to_admin\"                  value=\"yes\"&gt;<br \/>\n&lt;input type=\"hidden\" name=\"to\" value=\"someone@bu.edu\"&gt;<br \/>\n&lt;input type=\"hidden\" name=\"return\" value=\"thankyou.html\"&gt; <\/code><\/p><\/blockquote>\n<p>Here are the special PonyExpress tags you use when you want to <strong>save the       form data in a tab-delimited file:<\/strong><\/p>\n<blockquote><p><code>&lt;input type=\"hidden\" name=\"form_location\"                     value=\"\/yoursite\/comments\/\"&gt;<br \/>\n&lt;input type=\"hidden\" name=\"database\" value=\"yes\"&gt;<br \/>\n&lt;input type=\"hidden\" name=\"datafile\" value=\"results.txt\"&gt;<br \/>\n&lt;input type=\"hidden\" name=\"order\" value=\"field1,                     field2, field3\"&gt;<br \/>\n&lt;input type=\"hidden\" name=\"header_row\"                     value=\"yes\"&gt;<br \/>\n&lt;input type=\"hidden\" name=\"use_ordered_only\"                     value=\"yes\"&gt;<\/code><\/p><\/blockquote>\n<p>When these tags are added, your form will export the data to a tab-delimited                 file called results.txt. This file is located in the directory called                 \/yoursite\/comments. The function and usage of these tags are explained                 in detail on the <a href=\"https:\/\/www.bu.edu\/tech\/services\/cccs\/websites\/people\/forms\/ponyexpress-overview\/\">PonyExpress pages<\/a>.<\/p>\n<h2>Step 2: Activate your form_location directory<\/h2>\n<p>You must now activate your form_location directory so that your form has write       privileges to the tab-delimited file. By default, the server does not have authorization       to make changes to your directories. This is done in order to preserve security       on the servers, and to reduce the possibility of accidental file overwrites.<\/p>\n<blockquote><p><strong>For sites on www.bu.edu:<\/strong><\/p>\n<p>Use <a class=\"myhelp_activate\" href=\"https:\/\/www.bu.edu\/tech\/contact\/\">our form<\/a> to         request that your directory be activated. Please include the URL to your form         in the request. You will get a response confirming the activation of your directory         in less than one business day, usually.<\/p>\n<p><strong>For sites on people.bu.edu:<\/strong><\/p>\n<p>Publishers on people.bu.edu can activate their own directories without the                   assistance of the webmasters. Please see <a href=\"https:\/\/www.bu.edu\/tech\/services\/cccs\/websites\/people\/forms\/form-to-datafile\/activating-your-forms-directory\/\">Activating Your Form&#8217;s Directory<\/a> for                   instructions.<\/p><\/blockquote>\n<p>When these steps are complete, you should test out your form to make sure it                   is functioning properly, and examine your tab-delimited file to                   be sure data is exporting as it should be.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step 1: Add special PonyExpress tags Once you have your HTML survey form designed, you need to add some special PonyExpress tags so that it will export the data correctly. Here are some generic tags. For detailed explanations of these tags, please see the PonyExpress pages. &lt;form method=&#8221;post&#8221; action=&#8221;\/htbin\/ponyexpress2&#8243;&gt; &lt;input type=&#8221;hidden&#8221; name=&#8221;mail_to_admin&#8221; value=&#8221;yes&#8221;&gt; &lt;input type=&#8221;hidden&#8221;&#8230;<\/p>\n","protected":false},"author":1685,"featured_media":0,"parent":9873,"menu_order":3,"comment_status":"closed","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/9880"}],"collection":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/users\/1685"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/comments?post=9880"}],"version-history":[{"count":8,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/9880\/revisions"}],"predecessor-version":[{"id":45716,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/9880\/revisions\/45716"}],"up":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/9873"}],"wp:attachment":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/media?parent=9880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}