Results 1 to 5 of 5

Thread: CGI Tutorial

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Red face

    Hi,

    Does Anybody know where I can download a beginners CGI tutorial? Thanks
    rino_2
    Visual Basic, HTML
    Please Visit my Site: Richard's VB Site

  2. #2

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    What language? If you want to use Perl, then remember this little goodie:
    Code:
    # 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 refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  4. #4
    Guest
    I would like that very much parksie

    [email protected]

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Thumbs up

    Thanks Guys!
    rino_2
    Visual Basic, HTML
    Please Visit my Site: Richard's VB Site

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width