<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1000965" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1000965</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-cgi-script-make-file#comment-1004095</link>
    <description> &lt;p&gt;Not sure if anyone is interested, but I added another feature to it  &lt;img src=&quot;http://www.webmaster-forums.com/ubb/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt;&lt;/p&gt;
&lt;p&gt;You can now have the input written to a file and/or have the input emailed to you.&lt;/p&gt;
&lt;p&gt;I also renamed the file.  Here is the link to the test form/info page &lt;a href=&quot;http://dlo.net/~rob/cgi-bin/formhandler.shtml&quot; class=&quot;bb-url&quot;&gt;http://dlo.net/~rob/cgi-bin/formhandler.shtml&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;And here is the source:http://dlo.net/~rob/cgi-bin/formhandler.txt&lt;/p&gt;
&lt;p&gt;Anyone else suggest other features  &lt;img src=&quot;http://www.webmaster-forums.com/ubb/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt;?&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;strong&gt;Windmills always turn counter-clockwise. Except for the windmills in Ireland.&lt;/strong&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 13 Feb 2000 16:02:00 +0000</pubDate>
 <dc:creator>Rob Pengelly</dc:creator>
 <guid isPermaLink="false">comment 1004095 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-cgi-script-make-file#comment-1004094</link>
    <description> &lt;p&gt;I tested it out. Works good. This will save me a heck of a lot of time!&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;strong&gt; &lt;a href=&quot;http://ArtsNFlies.com&quot; class=&quot;bb-url&quot;&gt;ArtsNFlies.com&lt;/a&gt; &lt;/strong&gt;&lt;br /&gt;
&quot;&lt;em&gt;It&#039;s not really a flyfishing shop, more like a Martha Stewart goes fishing thing!&lt;/em&gt;&quot;&lt;/p&gt;
&lt;p&gt;Original art, hand tied flies, unique books and gifts, &lt;em&gt;free&lt;/em&gt; sweepstakes and &lt;em&gt;&lt;strong&gt;MORE&lt;/strong&gt;&lt;/em&gt;!&lt;br /&gt;
&lt;strong&gt;Come see what everyone is talking about!&lt;/strong&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 Jan 2000 04:14:00 +0000</pubDate>
 <dc:creator>Jaiem</dc:creator>
 <guid isPermaLink="false">comment 1004094 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-cgi-script-make-file#comment-1004093</link>
    <description> &lt;p&gt;Great! Thanks again. I&#039;ll test it this weekend.&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;strong&gt; &lt;a href=&quot;http://ArtsNFlies.com&quot; class=&quot;bb-url&quot;&gt;ArtsNFlies.com&lt;/a&gt; &lt;/strong&gt;&lt;br /&gt;
&quot;&lt;em&gt;It&#039;s not really a flyfishing shop, more like a Martha Stewart goes fishing thing!&lt;/em&gt;&quot;&lt;/p&gt;
&lt;p&gt;Original art, hand tied flies, unique books and gifts, &lt;em&gt;free&lt;/em&gt; sweepstakes and &lt;em&gt;&lt;strong&gt;MORE&lt;/strong&gt;&lt;/em&gt;!&lt;br /&gt;
&lt;strong&gt;Come see what everyone is talking about!&lt;/strong&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 21 Jan 2000 19:48:00 +0000</pubDate>
 <dc:creator>Jaiem</dc:creator>
 <guid isPermaLink="false">comment 1004093 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-cgi-script-make-file#comment-1004092</link>
    <description> &lt;p&gt;Done.&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;strong&gt;A cow produces about 65 pounds of crap a day.&lt;/strong&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 21 Jan 2000 14:34:00 +0000</pubDate>
 <dc:creator>Rob Pengelly</dc:creator>
 <guid isPermaLink="false">comment 1004092 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-cgi-script-make-file#comment-1004091</link>
    <description> &lt;p&gt;Wow! Thanks a ton!&lt;/p&gt;
&lt;p&gt;One point: Can you add the system date to the record? IOW, make the system date (format YYYYMMDD) as always the first field on the record before any of the elements?&lt;/p&gt;
&lt;p&gt;Again, &lt;strong&gt;much thanks!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;strong&gt; &lt;a href=&quot;http://ArtsNFlies.com&quot; class=&quot;bb-url&quot;&gt;ArtsNFlies.com&lt;/a&gt; &lt;/strong&gt;&lt;br /&gt;
&quot;&lt;em&gt;It&#039;s not really a flyfishing shop, more like a Martha Stewart goes fishing thing!&lt;/em&gt;&quot;&lt;/p&gt;
&lt;p&gt;Original art, hand tied flies, unique books and gifts, &lt;em&gt;free&lt;/em&gt; sweepstakes and &lt;em&gt;&lt;strong&gt;MORE&lt;/strong&gt;&lt;/em&gt;!&lt;br /&gt;
&lt;strong&gt;Come see what everyone is talking about!&lt;/strong&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 21 Jan 2000 13:32:00 +0000</pubDate>
 <dc:creator>Jaiem</dc:creator>
 <guid isPermaLink="false">comment 1004091 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-cgi-script-make-file#comment-1004090</link>
    <description> &lt;p&gt;Well, here is what I have done.&lt;/p&gt;
&lt;p&gt;In the script, you specify how many elements there are in your form.  Than in your html form, for each input you use&lt;br /&gt;
&amp;lt;input name=&quot;element1&quot; ....&amp;gt;&lt;br /&gt;
&amp;lt;input name=&quot;element2&quot; ...&amp;gt;&lt;br /&gt;
etc etc&lt;/p&gt;
&lt;p&gt;I also added a feature that you did not mention, but may come in handy.  You can specify that input boxes must not be left blank.&lt;br /&gt;
so if you wanted element1 and element5 not to be blank, you would edit the @required variable and put&lt;br /&gt;
@required=(1,5);&lt;/p&gt;
&lt;p&gt;Here is a test page &lt;a href=&quot;http://dlo.net/~rob/cgi-bin/artnfiles.html&quot; class=&quot;bb-url&quot;&gt;http://dlo.net/~rob/cgi-bin/artnfiles.html&lt;/a&gt;&lt;br /&gt;
I made it so that your first name and last name are required.  If one of them is not entered, it will not go through with the script.&lt;/p&gt;
&lt;p&gt;Here is the source &lt;a href=&quot;http://dlo.net/~rob/cgi-bin/artnfiles.txt&quot; class=&quot;bb-url&quot;&gt;http://dlo.net/~rob/cgi-bin/artnfiles.txt&lt;/a&gt;  &lt;/p&gt;
&lt;p&gt;Hope that helps.&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;strong&gt;A cow produces about 65 pounds of crap a day.&lt;/strong&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 21 Jan 2000 04:04:00 +0000</pubDate>
 <dc:creator>Rob Pengelly</dc:creator>
 <guid isPermaLink="false">comment 1004090 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-cgi-script-make-file#comment-1004089</link>
    <description> &lt;p&gt;Rob - On my sweepstakes page I currently use a form-email CGI script to take all the info the visitor enters on the HTML page, format a letter that is emailed to the visitor as a confirmation and BCC&#039;d to me for the entry. I believe the form-email CGI just reads the canned letter and does a search&amp;amp;replace based on the variable names in the HTML and the letter body. Then the CGI redirects the visitor to another page after sending the email (that&#039;s a feature I still &lt;strong&gt;must&lt;/strong&gt; have!)&lt;/p&gt;
&lt;p&gt;Instead, I want to just append all those fields to a comma delimited ASCII file. Then redirect the visitor to another page.&lt;/p&gt;
&lt;p&gt;Take a look at the sweepstakes page on my site. Infact, put in an entry and see how it works now.&lt;/p&gt;
&lt;p&gt;My idea is to have a &quot;generic&quot; Perl CGI script that takes say 30 or 40 alphanumeric form parameters (i.e. param1, param2, param3, etc.), ideally as form variables instead of actual parameters on the CGI command line, and appends them all as one comma delimited record to an ASCII file on my server. Today&#039;s system date (in the format YYYYMMDD) would always be the first field on each record. It would be great if each parameter could be left justified (i.e. remove any spaces after the right most character). Any unused (blank) parameters are considered spaces when written out to the ASCII file.&lt;/p&gt;
&lt;p&gt;For example, a set of records would look like:&lt;/p&gt;
&lt;p&gt;20000120,James Kirk,Somewhere,NY,etc.,etc.,,,,&lt;br /&gt;
20000121,Mary Jane,Nowhere,NJ,etc.,etc.,,,,&lt;br /&gt;
20000122,Tom Hanks,Hollywood Springs,CA,etc.,etc.,,,,,&lt;/p&gt;
&lt;p&gt;Thus, when used, each time a visitor to my site enters the sweepstakes thier info is appended to a variable length comma delimited record on an ASCII file. Then the CGI script redirects the visitor to an HTML page I will make that thanks the person for thier entry (you&#039;ll see what I mean when you enter the sweepstakes).&lt;/p&gt;
&lt;p&gt;I figure 30 or 40 variables would give me plenty of room to expand if I want to increase the number of questions I ask or if I want to use the script for something else later.&lt;/p&gt;
&lt;p&gt;Thanks for your help!! &lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;strong&gt; &lt;a href=&quot;http://ArtsNFlies.com&quot; class=&quot;bb-url&quot;&gt;ArtsNFlies.com&lt;/a&gt; &lt;/strong&gt;&lt;br /&gt;
&quot;&lt;em&gt;It&#039;s not really a flyfishing shop, more like a Martha Stewart goes fishing thing!&lt;/em&gt;&quot;&lt;/p&gt;
&lt;p&gt;Original art, hand tied flies, unique books and gifts, &lt;em&gt;free&lt;/em&gt; sweepstakes and &lt;em&gt;&lt;strong&gt;MORE&lt;/strong&gt;&lt;/em&gt;!&lt;br /&gt;
&lt;strong&gt;Come see what everyone is talking about!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;[This message has been edited by Jaiem (edited 20 January 2000).]&lt;/p&gt;
&lt;p&gt;[This message has been edited by Jaiem (edited 20 January 2000).]&lt;/p&gt;
&lt;p&gt;[This message has been edited by Jaiem (edited 20 January 2000).]&lt;/p&gt;
 </description>
     <pubDate>Thu, 20 Jan 2000 14:14:00 +0000</pubDate>
 <dc:creator>Jaiem</dc:creator>
 <guid isPermaLink="false">comment 1004089 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-cgi-script-make-file#comment-1004088</link>
    <description> &lt;p&gt;What parameters do you want? (name, email etc?)&lt;br /&gt;
And will they be inputed by an html form?&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;strong&gt;A cow produces about 65 pounds of crap a day.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;[This message has been edited by robp (edited 19 January 2000).]&lt;/p&gt;
 </description>
     <pubDate>Wed, 19 Jan 2000 22:59:00 +0000</pubDate>
 <dc:creator>Rob Pengelly</dc:creator>
 <guid isPermaLink="false">comment 1004088 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
