Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    mtd
    mtd is offline
    Regular Coder
    Join Date
    Jun 2003
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    form submit removes decimals - how to replace

    When I submit my form data, the decimals and spaces are removed and replaced with '_' -- How can I fix this when I print the values?

    urldecode() and stripslashes() have not fixed the problem - how can I replace the decimals and spaces, respectively, where they are both replaced with the same _ char? If I use str_replace(), it replaces both decimals and spaces, but with the same character because they are both represented by the underscore.

  • #2
    Regular Coder
    Join Date
    May 2005
    Posts
    190
    Thanks
    1
    Thanked 2 Times in 2 Posts
    lets see your php that processes the form data

  • #3
    Regular Coder
    Join Date
    Feb 2005
    Location
    West Midlands, UK
    Posts
    623
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Do you mean the form field names or the actual values? I've seen field names replaced before but never values.

  • #4
    Banned
    Join Date
    Nov 2002
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts
    to remove decimals u can press 'backspace' on the keyboard


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •