FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Perl Script - checking if feilds are complete





710ths
Hi.
I have a .pl file which I download from the web i.e. I didn't write it. And I understand that each of the three fields are checked to see if they have been entered. I need to exclude the "message" field from the check but still ensure the "name" and "email" fields are entered. Here is what I think is the code.

&CheckReferingURL;
&ReadParse;
$Name = $in{'Name'};
$Email = $in{'Email'};
$Message = $in{'Message'};
&CheckEmailAddressFormat;
&CheckFields;
&GetDate;
&SendSubmission;
&SendAutoReply;
print "Location: $ThankPage\n\n";
exit;

Anyone have any ideas what I need to amend to accomplish the above?
Stubru Freak
710ths wrote:
Hi.
I have a .pl file which I download from the web i.e. I didn't write it. And I understand that each of the three fields are checked to see if they have been entered. I need to exclude the "message" field from the check but still ensure the "name" and "email" fields are entered. Here is what I think is the code.

&CheckReferingURL;
&ReadParse;
$Name = $in{'Name'};
$Email = $in{'Email'};
$Message = $in{'Message'};
&CheckEmailAddressFormat;
&CheckFields;
&GetDate;
&SendSubmission;
&SendAutoReply;
print "Location: $ThankPage\n\n";
exit;

Anyone have any ideas what I need to amend to accomplish the above?


Are you sure this is the only code needed?

&CheckFields;
As far as I know Perl, this seems to be a subroutine that's coded elsewhere. So the answer isn't in the code you gave.
I'm not sure, I'm not good at this.

Hope I've helped you.
Related topics
writing COM components in Perl
CGI FormMail Script Part II
executing a perl script
problem with cgi perl script
Show ip adress from perl -script need help
CGI/Perl Script to backup a website.
PERL - post data from one script to another (Without LWP)
I have a perl Script.. but i dont know how to use.
im installing a perl script in my website and..
Running a Perl script in the background
HELP needed with basic Email perl script.
Problem with perl script
executing a perl script from within a script
Executing a Perl CGI script
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.