how to trap empty string(value) before it save to database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BRENDAMAGE
    New Member
    • Jul 2007
    • 1

    how to trap empty string(value) before it save to database

    can anyone hlp on this...

    how to trap empty string(value) before it saves to database...

    this one id like to happen...

    lastname
    firstname
    middlename


    if one of the list field is empty.. error occured telling that one of them is empty..
    thnx a lot... i need it soon
  • ak1dnar
    Recognized Expert Top Contributor
    • Jan 2007
    • 1584

    #2
    Hi BRENDAMAGE ,

    Welcome to TSDN !

    Please be careful, not to post the questions in Articles section.
    These guys will change your name with BRAINDAMAGE.

    ok Leave it.This is your first post to the forum however. even experienced ones also doing the same.

    enjoy the ride!
    Last edited by ak1dnar; Jul 23 '07, 06:16 AM. Reason: vbmenu_register("postmenu_2708479", true);

    Comment

    • ak1dnar
      Recognized Expert Top Contributor
      • Jan 2007
      • 1584

      #3
      Originally posted by BRENDAMAGE
      can anyone hlp on this...

      how to trap empty string(value) before it saves to database...

      this one id like to happen...

      lastname
      firstname
      middlename


      if one of the list field is empty.. error occured telling that one of them is empty..
      thnx a lot... i need it soon
      I am assuming those fields that you trying to validate are Form Inputs.
      You can validate the form input on two places, client side and server side. try it here

      Comment

      Working...