rline has asked for the wisdom of the Perl Monks concerning the following question:

Hey, Thanks everyone for your time and effort in replying to my question! I really appreciate it. OK. So I understand how to get the date in x days time. How can I automatically insert the variable $then_str into my flatfile database? The database is appended every time a user fills out a form. So there are about 20 fields which are appended. How do I automatically insert the variable $then_str next to, say, the 15th field in the database? So the script needs to pull the 20 user-filled-in values, and then add my created $then_str value next to the 15th value, to make a total of 21 values in the database? Thanks in advance!
  • Comment on Insert an extra variable into a form-generated database

Replies are listed 'Best First'.
Re: Insert an extra variable into a form-generated database
by C-Keen (Monk) on Sep 30, 2001 at 14:10 UTC
    You may want to use CGI; as I was told before, too :-) Have a look at my question and especially at tilly's answer which is about retrieving parameters from a form.With this you should be able to retrieve all the parameter to the place where you want to insert your own and the append the rest of them to your file.

    Regards,
    C-Keen

Re: Insert an extra variable into a form-generated database
by blakem (Monsignor) on Sep 30, 2001 at 11:40 UTC