How to set custom form input field for "Price"?

Posted by RodeoRamsey on Stack Overflow See other posts from Stack Overflow or by RodeoRamsey
Published on 2010-06-11T08:21:39Z Indexed on 2010/06/11 8:22 UTC
Read the original article Hit count: 194

Filed under:
|
|

I have a basic html form that adds some data to the page using PHP. I want to make this form field a "Price" field. My html is:
<input class="bids" name="comment" id="comment" tabindex="4" />
How can I fix this field so that users can't enter random letters, dollar signs, dashes, or other weird formats. I want the output to be whole dollars. Sorry I'm a complete programming moron. :)

© Stack Overflow or respective owner

Related posts about php

Related posts about html