SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: headers

  1. #1
    SitePoint Zealot
    Join Date
    Mar 2011
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    headers

    hi ,

    ive created a basic form that validates before posting to a db
    Is there some simple code that can highlight/ mark

    the incorect field on the html form?

  2. #2
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,401
    Mentioned
    147 Post(s)
    Tagged
    4 Thread(s)
    Put the names of the fields with incorrect values in an array as you validate them. Then, in the part where you display the form, check for each field if it's name is in the array. If so, do whatever you want with it.


Bookmarks

Posting Permissions

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