HTML form question
I'm not 100% sure if this is a HTML issue or PHP but I'm reading PHP and MySQL Novice to Ninja! I'm on page 119 and am hung up on a bit of code for the form.
<label for="joketext">Type your joke here: </label>
<textarea id="joketext" name="joketext" rows="3" cols="40">
Please elaborate on this bit of code.
I believe the textarea id="joketext" is part of the associative array.
I believe the textarea name="joketext" is the post variable.
I'm totally lost as to what the label for="joketext" is for.
It's the label for the textarea with the name "joketext".
(This is what a <label> is.)
There is a fuller explanation of label here: http://reference.sitepoint.com/html/label
AH! That makes since now. Thanks. That helped a lot.