rino_2
Aug 11th, 2000, 02:47 PM
Hi,
Does Anybody know where I can download a beginners CGI tutorial? Thanks
http://htmlgoodies.earthweb.com/primers/perl/
parksie
Aug 11th, 2000, 06:16 PM
What language? If you want to use Perl, then remember this little goodie:
# read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); # POST only
# $buffer = $ENV{'QUERY_STRING'}; # GET only
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair); $value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$value =~ s/~!/ ~!/g;
$FORM{$name} = $value;
}
This way, you can use stuff like print $FORM{'txtMyTextBox'};
On the other hand, there's CGI4VB (do a search), if you want to use our very own VB.
C++, I can email you a class that handles all the stuff you'll need.
I would like that very much parksie :)
denniswrenn@yahoo.com