Welcome
Welcome to <strong>The Linux And Unix Menagerie</strong>.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, <a href="/profile.php?mode=register">join our community today</a>!

CGI Form setup

Any Perl or CGI scripting/programming questions and answers

CGI Form setup

Postby yahoozer on Fri Nov 09, 2007 5:53 pm

Hello,

Since this is Perl and CGI _ I have quick question about CGI form using Perl CGI module. I understand it is simple to use and can create page.

None of my input is come back when I get to my form redirect page. I'm doing POST to my /cgi-bin/form.pl file from my web page form.

Any help,

Thanks,

Yaz
yahoozer
 
Posts: 9
Joined: Sun Oct 28, 2007 4:40 pm

Postby laum on Sat Nov 10, 2007 12:34 am

Hey There,

Just the basics to start - if thi s doesn't help, if you could post your html source and perl code, perhaps we could disect that and find the issue.

Make sure that you're using the CGI module correctly - for instance: to pull params from that you pass from your html page (in the html the form elements "name" would be the param and grabbing that with the CGI module would get you the value that was entered and submitted

use CGI;
my $cgi = new CGI;
foreach $param (sort @params) {
print "param $cgi->param($param)\n";
}


That would be just a basic dump of all the passed parameters - if this comes up with nothing, then the issue may be with the way the parameters are being passed or called.

Hope this helps,

laum
laum
Site Admin
 
Posts: 46
Joined: Sun Oct 14, 2007 7:04 pm


Return to Perl / CGI

Who is online

Users browsing this forum: No registered users and 0 guests

cron