validate a field with error message

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • webandwe
    New Member
    • Oct 2006
    • 142

    validate a field with error message

    Hi

    here is one of my fields:

    [HTML]<input name="a2" type="text" id="a2" onblur="MM_vali dateForm('a2',' ','R');return document.MM_ret urnValue" />
    [/HTML]
    If I do not fill it in it says a2 required, I need to keep a2 but want to write my own error message? (name is required) I need to change a2 to name..

    I am working with a mysql database and cannot change a2 to name.

    How do I it?

    Thanks
    Last edited by acoder; Oct 16 '07, 12:11 PM. Reason: Added code tags
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Show the code which does the error checking.

    Please use code tags when posting code:
    &#91;CODE=javas cript]
    JavaScript code goes here...
    [/CODE]

    Comment

    Working...