![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help for a perl script - writing to a data file | meghana | Shell Programming and Scripting | 2 | 02-04-2008 05:05 PM |
| Perl Unix Script Writing | Dinkster | UNIX for Dummies Questions & Answers | 1 | 02-01-2008 04:09 PM |
| Reading and Writing from Excel using Unix scripting | AshishK | UNIX and Linux Applications | 3 | 11-09-2007 02:49 AM |
| Perl Scripting | vaibhav | Shell Programming and Scripting | 10 | 03-27-2007 05:32 AM |
| Writing perl module | jo_aze | Shell Programming and Scripting | 4 | 08-06-2003 11:10 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Writing CGI scripting using perl
Hi All,
I am trying to do the following thing. I am entering name & email id & then in action i am calling a .cgi program that sends a email to the email id entered. I am facing a small problem, once i have entered the details , its printing the contents of .cgi file in browser. there is a subroutine in program which prints the thank you note. it should give me that. can anyone let me know where i went wrong.? Thanks in advance. Alma |
|
||||
|
I have restart my apache server .
I could find these enteries in the #set Apache::PerlRun Mode for /cgi-perl Alias <Location "/cgi-perl/*.pl"> SetHandler perl-script PerlResponseHandler ModPerl::PerlRun Options -Indexes ExecCGI PerlSendHeader On </Location> how can i know the cgi is not supported ? Thanks Alma |
|
||||
|
CGI Script - Not getting form value
My code is a.html
<html> <head> <title></title> <body> <form name=name form method=post action=http://localhost/cgi-bin/b.cgi> enter your name:<input name=name type=text><br> <input type=submit> </form> </body> </html> b.cgi #!/perl/bin/perl5.6.1.exe use strict; use CGI qw(:standard); my $name=param("name"); print "Content-Type:text/html\n\n"; print $name; But i am not getting the value in it. Thanks Alma |
|
||||
|
Server is displaying source code because either there are problems with your mod_perl configuration, or your script is not properly installed (without +x chmod, lack of access permission, etc.), etc.
And your Apache configuration suggests you are not running Apache CGI (at least that's not what you quoted). You are running mod_perl. Try changing the extension from .cgi to .pl and see if it helps. And did you actually give an executable chmod? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|