DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Perl (http://www.daniweb.com/forums/forum112.html)
-   -   How To Save in our Computer (http://www.daniweb.com/forums/thread161608.html)

santhanalakshmi Dec 10th, 2008 7:13 am
How To Save in our Computer
 
Hi,
I want to add one "Save Button" on web page.I am working on ".cgi" program and using "sql server 2000" database.Datas are retrieving from the database and displayed as on html page(datas are student records (i.e) marks,grade etc).In that displayed page,i want to add "save button".By clicking save,it should automatically saved as "text file(nodepad)" in our local system.Please help me

regards,
santhanalakshmi.

KevinADC Dec 10th, 2008 6:13 pm
Re: How To Save in our Computer
 
Save the html page or the data only?

santhanalakshmi Dec 12th, 2008 5:47 am
Re: How To Save in our Computer
 
Quote:

Originally Posted by KevinADC (Post 754573)
Save the html page or the data only?

I want to save the data only on my system as a text file..........

KevinADC Dec 12th, 2008 1:53 pm
Re: How To Save in our Computer
 
generic example:

open(my $FH, ">", 'path/to/file.txt') or die "$!";
print $FH "your data\n";
close $FH;


All times are GMT -4. The time now is 1:35 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC