Jump to content

format number field


timstring

Recommended Posts

This is the html forum. html doesn't have number fields per se. Are you asking about a sql table?

Link to comment
Share on other sites

No, it's an HTML question

<form action="validate1.php" method="post" name="LogIn" class="center"><div class="small"><label>Tech Number:  <br /></label><input type="number"] name="TechEntry" id="focus-field"><br />

Edited by timstring
Link to comment
Share on other sites

its not fully cross browser compatible however. To truely validate user input, most options involve using JS to validate client side pre submit, and also with a server side language when processing the form (also helpful in the event JS is disabled)

Edited by thescientist
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...