CGI - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

CGI

Comments

  • superjoe30superjoe30 Posts: 174Member

    : I have an html page with a textbox in it and I want to write the content of it in a file.
    :

    [code]
    use strict;
    use CGI;

    my $file = "results.txt"

    open(RESULTS,">>$file") || die "Couldn't open $file: $!";
    print RESULTS param('opinion');
    close(RESULTS);

    [/code]

    this appends the data to the file

    [hr]
    ~~[blue]Perl[/blue]~~[red]Visual Basic[/red]~~[green]JavaScript[/green]~~
    SuperJoe

  • JonathanJonathan Posts: 2,914Member
    Hi,

    If you want to understand a little more, everything in my tutorial will tell you how to do it also...though the already suggested solution looks good to me! :)

    http://www.jwcs.net/webmasters/learning/perl/

    Jonathan



    -------------------------------------------
    Count your downloads:
    http://www.downloadcounter.com/
    And host your site:
    http://www.incrahost.com/
    Don't say I never give you anything... ;-)

Sign In or Register to comment.