Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

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
0
Inga_dusha
Asked:
Inga_dusha
  • 2
  • 2
1 Solution
 
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

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now