Bonsoir Pierre,
I'm located in Ottawa, Canada.
>> When you validate [...] the page is [...] reloaded
Yes, true. However, the case am identifying is when the page is not submitted for validation but, rather, the user clicks the "clear" button on the form. The expectation is that the code is cleared (reset to no digits entered) but it actually retains its value in the code variable.
Try it on your demo site:
fauque.fr/demos/phpclasses/loginpad ...
Enter: 1708 [clear] 1936 [send]
This will result in a code of "17081936" being submitted when you click the submit button when it should only have sent "1936".
>> Can you STP send me this class
Sorry, I'm not familiar with the acronym STP (?)
I made a few other changes to the class to meet my specific needs but the changes I made specific to this issue were included in my last message if that helps.
Thanks again for the excellent class.
Peter.