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; }
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! 2. i know what it does, i want to know if i wrote it correctly. 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...