Transfere values from HTML Form to perl script

Posted on 2005-04-14
Last Modified: 2013-12-25
I have a lot of parameters on my web page (let's say text1,text2 ..)

And I have a submit button
When I press it ,I want to run my perl script that should receive all of them

How can I do this ?

Question by:Inga_dusha
    LVL 18

    Accepted Solution



    use strict;
    use warnings;

    use CGI;
    use CGI::Carp qw/fatalsToBrowser/;

    my $q = new CGI;

    print $q->header;
    print $q->start_html;
    print "You submitted these fields:<br />$/";

    foreach($q->param()) {
        print $_, ": ", $q->param($_), "<br />$/";

    print $q->end_html;

    Author Comment

    Hi ,I a little forgot the sysntax ,how I can call this script from my html page

    LVL 18

    Expert Comment

    <form action="/cgi-bin/" method="POST">

    Author Comment

    Thanks a lot

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
    This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
    Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
    Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now