I have a little problem..
"<td height=50>" . captcha() . "</td>";
^ The above code is a long code and that’s just a little part of it, well everything seems to work fine. However, the only problem is that the captcha (image, which is called by the function) is not in the TD tag, it is completely outside the table..
Anyway to fix this would be greatly appreciated.
The problem is that the function doesn’t return a value, but instead it echoes it:
In this code example, you will see that it outputs
bac. The reason being, thatbis already echoed, while the string ‘a’ .void. ‘c’ (resulting inac) is being put together.Undoubtedly, your captcha function has the same problem.
Solution: Use
returninstead ofechoin your function.