Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2006
    Posts
    157

    Unanswered: how to avoid processing unset variables from post

    provided i have 10 input boxes in an input form

    and only 5 to 7 of the input boxes get filled


    is there any way i can avoid processing , having to test if the other input are set?
    so that i can just focus on the posted input that have their value set?
    Only quitters quit!

  2. #2
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    you have to test your input boxes in any event to make sure the supplied values are valid. otherwise your application is exposed to all manner of malicious attacks.

    so why not test to see if the value is valid, and if not don't process it further. after its not a major resource hog to do a few checks.. it isn't going to kill your server to do those checks.......

  3. #3
    Join Date
    Apr 2006
    Posts
    157
    good point, thanks, i've been wasting too much time trying to get away with a shortcut...
    Only quitters quit!

Posting Permissions

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