in reply to Whats wrong with this code.
If there is a difference in the behaviour of these two pieces of code, then there must be a difference in the HTML that they produce.
I suggest comparing the HTML produced by the two pieces of code. Any differences found will explain the difference in behaviour.
Your next task will then be to work out how to change the non-functioning code so that it produces the same HTML as the functioning code.
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg
|
|---|