Helpful Information
 
 
Category: Server side development
Text retrival

Hello

K, i'm seeking advice in finding a script to store anything sent to it, preferably text files.....ive searched all over the place, ive come across form handlers...ect..but not one that will store all text sent to it (like a database or whatever)...i'm well new at perl by the way...:D


sub getCookies {

local(@rawCookies) = split (/; /,$ENV{'HTTP_COOKIE'});
local(%cookies);

foreach(@rawCookies){
($key, $val) = split (/=/,$_);
$cookies{$key} = $val;
}

return %cookies;
}


this is used for cookies is it not....how would i change it for text files ?

thanks

It's a bit too complex to post code for you, so I'm just going to point you in the write directions:

http://tech-concepts.com/scripts/
http://www.ezscripting.com/scripts/csvform.html
http://freeware.oveas.com/ofh/

if you just want info going to a txt file chuck this in your script
open (FILE, ">>whatever.txt") || die "coundnt open file file";
print FILE"stuff you want in it\n";
and if you want to send stuff form a form use varibles like...
print FILE "$name $email etc \n";
remeber you need to declare the variables at the begining of the script.
that help?
sir p

Yes i'm getting their now....

thanks for the help guys....

no prob..thats good to hear:D










privacy (GDPR)