Jump to content

check variable for whole dollar amount


Stooney

Recommended Posts

What is the best way to go about this?  It is for a bidding system which only allows whole dollar amounts.  All I've come up with is settype() and is_int() but settype will change their bid to whole dollar, which is not what I want.  If they don't enter a valid amount, it needs to tell them to enter a valid amount, so we're never changing bids without people noticing.  Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/80939-check-variable-for-whole-dollar-amount/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.