|Pathologically Eclectic Rubbish Lister|
Re: Forwarding Post Databy thezip (Vicar)
|on Nov 30, 2007 at 00:54 UTC||Need Help??|
Danikar, you could always save the CGI parameters into a standard CGI file via:$query->save(\*FILEHANDLE);
as documented in the CGI docs.
For each form submission, you'll need to generate a unique and retrievable key (which is the basis for the associated filename) so that you can identify which file belongs to that particular session. In your form, you'll need to include a hidden variable containing the value of this key so that it can be relayed through the form submission.
On the receiving side, create a FILEHANDLE to access the contents of your file. You can do this because you know the name of the file (via the hidden variable). There's a little housekeeping that happens afterwards (ie. deletion of the saved/expired CGI files, etc.).
It looks like this:
An advantage to this method is that you can create many bogus form submissions to exercise the various features of your code. Be creative!
Update: Please be aware that there are some security considerations that go along with this. You need to take the appropriate precautions as you deem necessary.
Your wish is my commandline.