jftiger — 2012-09-14T13:29:46-04:00 — #1
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.
3dy_ro — 2012-09-14T14:20:32-04:00 — #2
It's the label for the textarea with the name "joketext".
(This is what a <label> is.)
technobear — 2012-09-14T14:27:25-04:00 — #3
There is a fuller explanation of label here: http://reference.sitepoint.com/html/label
jftiger — 2012-09-14T16:11:46-04:00 — #4
AH! That makes since now. Thanks. That helped a lot.