Jump to content

Help with POST inputs.


DBookatay

Recommended Posts

I have a form that uses dollar increments in several different input fields.

I need help so that if a user does not add a "." the form will automatically do it form them before the form is inserted into the dB.

 

Meaning, if the field is: $100.00, and the user only types "$100," the form will do the rest.

And if the user types :"$100.00" nothing will happen...

 

Some of the fields in the form are:

sold_price = '$_POST[sold_price]',
tax = '$_POST[tax]',
doc = '$_POST[doc]',
reg = '$_POST[reg]',
down = '$_POST[down]',
rate = '$_POST[rate]',
pymtAmt = '$_POST[pymtAmt]',

 

Any help would be awesome...

Link to comment
https://forums.phpfreaks.com/topic/69044-help-with-post-inputs/
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.