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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.