Hi All
I have a modified mailform script that allows collection of extra data but some people dont fill in the parts that are required, like post code so wondered if some one can give me some help with the checking part of the script.
I am guessing the bit i need is here
and the info i want checking to make sure an entry has been made is
I have tried but all i have managed to do is break my script (so put it back as it was for now)
hope someone can help
Cheers
Darren
I have a modified mailform script that allows collection of extra data but some people dont fill in the parts that are required, like post code so wondered if some one can give me some help with the checking part of the script.
I am guessing the bit i need is here
Code:
# Validate the content of the fields # my $sError; if ($sName eq "") { $sError .= ACTINIC::GetRequiredMessage(-1, 2370); } if ($sSubject eq "") { $sError .= ACTINIC::GetRequiredMessage(-1, 2372); } if ($sEmailRecpt eq "") { $sError .= ACTINIC::GetRequiredMessage(-1, 2371); } elsif ($sEmailRecpt !~ /.+\@.+\..+/) { $sError .= ACTINIC::GetPhrase(-1, 2378) . "\r\n"; } if ($sMessage eq "") { $sError .= ACTINIC::GetRequiredMessage(-1, 2373); } #
Code:
$sTextMailBody .= "PostCode: " . $::g_InputHash{'PostCode'} . "\r\n";
hope someone can help
Cheers
Darren
Comment