system — 2013-10-19T06:46:08-04:00 — #1
How can I check a value entered in a field on my form is a number?
rubble — 2013-10-19T06:55:42-04:00 — #2
Are you using php, ASP etc. with your code or just HTML?
system — 2013-10-19T07:02:43-04:00 — #3
How do I make a website field mandatory?
rubble — 2013-10-19T07:26:24-04:00 — #4
As I posted on your earlier thread it depends on how you are coding your site - you need to put more information into your posts if you want a useful reply.
picnictutorials — 2013-10-19T09:21:51-04:00 — #5
The best way is to make it mandatory with both JS client side and php server side. If you need code help then give a bit more info as to your requirements.
paulob — 2013-10-20T06:57:24-04:00 — #6
Threads merged as they seem to be related but will both require the same information supplied anyway.
dresden_phoenix — 2013-10-20T15:31:19-04:00 — #7
in HTML5 you can do type='number' in an input tag, keeping in mind not all browsers support html5, and form validation is VITAL
but the SAFEST way is to check your data server side, if when the data is received and checks it is valid then you redirect the user to a new page.. other wise you redisplay the form.
How you do his last part sever side will vary depending upon which server side language you are using.