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 2 of 2

Thread: form validation

  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    form validation

    I have a form that I do not want to pass any values to a database until submit but I want it to show the current calculation total. i.e. if someone puts the number 1 in one field and 2 in another a 'read only' field shows the number 3 in it automatically.

    that is easy enough but there are a few variables.

    One field will be a postcode/zipcode and will add a value to the total based on the first 2 characters entered, say they add 'ab1 2xy' the ab bit means 3 is added to the running total. how can i make this work?

    any help is appreciated

  • #2
    teh Moderatorinator
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,472
    Thanks
    4
    Thanked 40 Times in 40 Posts
    Use some string functions to get the first 2 characters.

    Good luck;


  •  

    Posting Permissions

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