...

View Full Version : Text retrival



Charl
06-17-2002, 04:24 PM
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

Feyd
06-17-2002, 05:55 PM
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/

sir pannels
06-17-2002, 08:37 PM
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

Charl
06-20-2002, 02:33 AM
Yes i'm getting their now....

thanks for the help guys....

sir pannels
06-21-2002, 12:52 AM
no prob..thats good to hear:D



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum