Reply to Re: Help with form processing script

Your name:

Reply:


Posted by Chris Beall on 12/04/05 19:11

Norliss wrote:

> Hi all
>
(snip)
> I've followed the instructions to the letter for Soupermail, novice.cgi
> and FormMail but I can't get any of them to work. No matter what I do, I
> keep receiving 500 Internal Server errors.
(snip)

Norliss,

Rather than starting with something complex, you need to establish that
you have gone through the correct steps to invoke and run a Perl program
from your server. Try uploading the following (untested... and note
that the DOCTYPE must appear on a single line) code as hello.pl, then
try to link to it. If you still get a server 500 error, there's
something basic about the upload or invocation of Perl that you need to
look at. Once that is fixed, you can move on to the more interesting
problems associated with actually getting the server to send out mail.

Chris Beall

...................................

#!/usr/bin/perl -w
print "Content-type: text/html\n\n";
print <<'ENDPART1';
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<title>Perl test page</title>

</head>

<body>
<h1>Perl test page</h1>
<p>This is a test of the ability to invoke and run a Perl program from
within a web browser.&nbsp;
If this message appears, the test was successful.
</p>
</body>

</html>

ENDPART1
exit ;
...................................

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация