G
17

Built my first login form and it broke immediately

I was coding at my kitchen table around midnight, trying to put together a simple login page for a practice project. The form looked fine but every time I hit submit it just refreshed the page with no error. Turns out I forgot to add the form tag's action attribute, so it had nowhere to send the data. Spent 45 minutes triple checking my JavaScript before I saw the missing piece. Has anyone else spent way too long hunting a simple HTML mistake?
2 comments

Log in to join the discussion

Log In
2 Comments
jadep41
jadep4117d ago
oh man, i feel that. spent like an hour once wondering why my css grid wouldn't line up. checked every property like 5 times. turns out i was missing a closing curly brace in a completely different stylesheet. the validator didn't even catch it until i ran a linter. now i just keep dev tools open all the time so i can spot broken stuff faster. still embarrassing when it's something that simple though
5
lindareed
lindareed17d ago
Happened to me too, found that adding a simple console.log at the top of the JS script helped me spot missing stuff faster.
3