Please ask the guest to fill in an amount, automatically add two digits after the mantissa
Please fill in the amount in the next text box. That program moves itself in the mantissa of the amount adds two decimal places and does not repeat within one day.
------Solution--------------------
Automatically add two decimal places you can use JS to achieve what is the need for you to not repeat in a day?
------Solution--------------------
00-99
Only 100 Numbers ...
If you have more than 100, there will be duplicates.
You can find the biggest one before you add it, and then +1.
------Solution--------------------
Add two decimal places and don't repeat this in a day.
------Solution--------------------
PHP Code
$textbox _amount=$_post[' textbox '];//appears double digit $rand_num=rand (00,99);//Set the day range so that the two digits of the day are not duplicated//more troublesome, The idea is that you can put the values of the previous guests into the database, and now fill in the amount of the database inside the comparison, the same again immediately. Finally get the result $textbox_amount= $textbox _amount. ".". $rand _num;