it’s too early
Sheesh. It’s my day off, so I wake at 7. My body hates me!Got logs of work done tho, since then. Rah!
And added error checking into the code so you can’t register as a blank name, like some nawty person did yesterday. Tsk 😊
Just need to add identical code to the backend too 😉
It’s quite sweet in a “lets think sideways about this” kinda way...dead simple too...
nam = document.form1.uname.value;
test = nam.replace(/([A-Za-z0-9_-])/gi,“$1$1”);
if(test.length != nam.length*2 || nam.length==0 || nam.length >16){
error 😉
so it replaces the text, then doubles it...if it’s not replaced the lot or nothing matches then test will never be namx2 in length, causing an error.
Pretty 😉
Anyways...am gonna go wander round Tottenham Court Road now and go Shuttle PC searching – I want one with a mobo that’ll support Novak’s 1.1ghz Athlon and much higher, so I can upgrade her later...and DDR as I have a gig of it. Then James can have my DIMMs from the current mobo and stop moaning about all his PCs being broken.
See? I’m doing this for a good cause. Nothing to do with me liking buying toys at all 😁
Last modified: Sunday, February 15th, 2026 at 6:50am
Add a Comment