2 ms·
Sure, https://developer.mozilla.org/en-US/docs/Web/HTML/Element https://developer.mozilla.org/en-US/docs/Web/HTML/Element has a list of off the shelf elements a
by ndriscoll 2y ago
Sure, https://developer.mozilla.org/en-US/docs/Web/HTML/Element https://developer.mozilla.org/en-US/docs/Web/HTML/Element has a list of off the shelf elements and what they're for. If you're building a form, you can find the relevant bits under "Forms". In this case, they needed 2 pieces of short text, so they would use 2 text inputs, 2 labels, and a submit button. The lotid could've been in the URL so they could display the name on the page and the user wouldn't need to enter it if they used a QR code to navigate to the page.
If they're feeling particularly adventurous, they could spend another hundred bytes on the Luhn algorithm in javascript to validate one of the two inputs. Or they could do it only on the server. It doesn't make much difference.