Hello, I have a Select on a form with only integer values.
Upon receiving this information in PHP, I make the following validations:
BecauseI'malreadyusing(int)
online297andline302,ismyfirstvalidation(atline292,with!is_numeric
)redundant?
Inline292Icheckifitisanumber,atline297ifitisnot"0" (which would indicate that it is the first select option "Select ...", that is, the user sent the form without selecting no option) and on line 302 I check whether the selected option actually exists in the DB (and that was not manually changed by the "Inspect Element") and that it is not "99", which is equivalent to the "Other" option of the select.
That is, how am I using the (int), do I really need the 292 line? Or do I need to do this double-check?
Thank you.