Reading and checking user's entry from a text field in an html form
<p>What I want to do is to have a form field that allows a person to try to guess from a picture what type of bird it is, and if they get it right, it tells them they got it right and gives them the code to be able to get a discount.</p>

<p>Here is the code I'm using within the head tags:</p>

<pre><code>formCheck()
{
    var birdName = document.forms[0].birdName.value
    if (birdName == "red bellied woodpecker")

    alert("That's Correct! Please enjoy 10% off your next purchase by entering the code NAMETHATBIRD92 during checkout.")

else

    alert("That's isn't the correct answer! Make sure your answer is very specific and keep trying, you can guess as many times as you want.")

}
</code></pre>

<p>Here is what I have within the body tag:</p>


  Can you name this bird?
    
  


<p>It works here:
www.madhatwebsolutions.com/namethatbird.html</p>

<p>It does not work here, where I really need it to work:
<a href="http://www.wildbirdsmarketplace.com/pages/Name-That-Bird!.html" rel="nofollow">http://www.wildbirdsmarketplace.com/pages/Name-That-Bird!.html</a></p>
