Transfere values from HTML Form to perl script

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 ?

Thanks
Inga_dushaAsked:
Who is Participating?
 
kanduraCommented:

#!/usr/bin/perl

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;
0
 
Inga_dushaAuthor Commented:
Hi ,I a little forgot the sysntax ,how I can call this script from my html page

Thanks
0
 
kanduraCommented:
<form action="/cgi-bin/scriptname.pl" method="POST">
0
 
Inga_dushaAuthor Commented:
Thanks a lot
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.