[TYPO3-project-formidable] renderlet CAPTCHA - Bug: Non valid XHTML-Code - SOLUTION
Luc Muller
"l.muller[no]" at [spam]ameos.com
Wed Feb 25 09:19:39 CET 2009
> $aCaptcha["img"]="<img id='" . $this->_getElementHtmlId() . "img'
> src='".$_SESSION['cryptdir']."cryptographp.php?cfg=0&".$iSID."'
> alt='captcha' />";
this is what is going to be in the next release ;)
Luc
Manuel Rego Casasnovas a écrit :
> Hi Hauke,
>
> On Tue, 24 Feb 2009 22:00:12 +0100
> "Hauke Hain" <newgrp at googlemail.com> wrote:
>> the following line has to be replaced by
>> $aCaptcha["img"]="<img id='" . $this->_getElementHtmlId() . "img'
>> src='".$_SESSION['cryptdir']."cryptographp.php?cfg=0&".$iSID."'
>> alt='captcha'></img>";
>>
>> this one:
>> $aCaptcha["img"]="<img id='" . $this->_getElementHtmlId() . "img'
>> src='".$_SESSION['cryptdir']."cryptographp.php?cfg=0&".$iSID."'
>> alt='captcha'>";
>
> This is not XHTML, you can check it at http://validator.w3.org/.
>
> If you're talking about XHTML you should close all the tags, so the
> current solution is right, another option could be something like:
> $aCaptcha["img"]="<img id='" . $this->_getElementHtmlId() . "img'
> src='".$_SESSION['cryptdir']."cryptographp.php?cfg=0&".$iSID."'
> alt='captcha' />";
>
> Thanks for your comments.
>
> Best regards,
> Rego
More information about the TYPO3-project-formidable
mailing list