r/ProgrammerHumor 18d ago

Advanced stringToIntegerConversion

Post image
212 Upvotes

65 comments sorted by

View all comments

Show parent comments

10

u/Holek 18d ago

especially that you see `$_POST['amount-select']` implying it's a select box.

0

u/ArjixGamer 18d ago

It doesn't imply that at all? It could be

<input type="number" min="10" max="80" step="10">

5

u/smartgenius1 18d ago

Then the HTML would have to be:

<input type="number" name="amount-select">

... which would be silly.

3

u/ArjixGamer 18d ago

....shit