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