CGI - Programmers Heaven

Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.