I Need A Bit of Help with a PERL Script

The Scarlet Pimp

Supreme Member
Joined
Apr 2, 2008
Messages
1,336
Reaction score
4,333
i'm writing an anti-spam routine and i want to know if this is the correct format:

if($use_nobot_check == "yes" && $color == "") {
echo "<body bgcolor=#D3D3D3>\n<h1>You did not answer the Anti-Spambot question. Hit your Back button, enter the correct answer and then resubmit the form.</h1>\n</body>\n";
exit;
}
 
Last edited:
i'm writing an anti-spam routine and i want to know if this is correct format:

if($use_nobot_check == "yes" && $color == "") {
echo "<body bgcolor=#D3D3D3>\n<h1>You did not answer the Anti-Spambot question. Hit your Back button, enter the correct answer and then resubmit the form.</h1>\n</body>\n";
exit;
}

firstly, this is php code and not perl.

secondly it will do this:

if they did not answer the correct color, it will tell them to go back and answer it.
 
1. yes, you are correct. it's php and not perl! :o

2. i know what it does, i want to know if i wrote it correctly. :confused:

for example, what is the difference between these (if any):

echo ("You answered the Anti-Spambot question incorrectly");
echo "You answered the Anti-Spambot question incorrectly";

they seem to work the same, and i've seen both formats used in scripts... :confused:
 
Last edited:
Back
Top