This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / Anybody can give advice? How to save contents of an input form on Web/HTML to a file with perl code? andhow to trigger the Perl code from the HTML file in order to save the form contents? I am a newbie. Thanks a lot!!
-brainopen(Xiaoxiao);
2005-7-14
{113}
(#2397911@0)
-
That is what CGI code does. It it time to learn how to use Perl to write CGI program now.
-bugfree(BugFree);
2005-7-14
(#2398093@0)
-
up! anyone can give help? it is emergent... Thanks!
-brainopen(Xiaoxiao);
2005-7-14
(#2399105@0)
-
一句话,使用什么Perl code 语句可以让用户自己电脑的保存文件的窗口弹出来?以便保存自己刚刚输入的资料?thanks!
-brainopen(Xiaoxiao);
2005-7-14
(#2399110@0)
-
保存到用户电脑本地?那和perl一点关系也没有(perl是server 端的脚本)。我愿来以为javascript 肯定不能存文件到本地(安全特征),不过刚才google了一下,好像居然能做:http://4umi.com/web/javascript/filewrite.htm
这个只在IE下工作。
http://www.captain.at/programming/xul/
这个是mozilla
-holdon(again);
2005-7-14
{121}
(#2399144@0)
-
Oh sorry I might misunderstood you. Maybe you mean let the perl script send back to content to client, and let the client browser popup "save as" window?What you need is using perl to output a special header.
http://www.faqs.org/rfcs/rfc2183
The samilliat C# code will be:
string strMime="application/pdf";
Response.ContentType =strMime;
Response.AppendHeader("Content-Disposition", "attachment; filename=report.pdf");
you can change the mime type to something else.
-holdon(again);
2005-7-15
{333}
(#2400984@0)