Closed Thread
Results 1 to 3 of 3

Thread: Completed form before send.

  1. #1
    FWS Addict jiminsd is an unknown quantity at this point
    Join Date
    Oct 2000
    Posts
    528
    Probably right under my nose but how do I get my form to be fully completed before it can be sent?

  2. #2
    Senior Member jvv is an unknown quantity at this point
    Join Date
    Oct 2000
    Location
    Antwerp, Belgium.
    Posts
    191
    Ugh... you need some form of validation. You could javascript to do it.

    I'm not really familiar with it so I can't really help you with it... Maybe you someone else here can help you with that.
    "Don't go knocking on death's door, ring the doorbell and run away, that really makes Death angry"

  3. #3
    Pro Member cds is an unknown quantity at this point
    Join Date
    Nov 2000
    Posts
    260
    Most people would do serverside checking for security reasons, but if you insist on client side (before you submit), here is an example of the javascript:

    if (theForm.some_element.length < 1)
    {
    alert("You forgot the some_element field.");
    theForm.some_element.focus();
    return (false);
    }

    This will warn the reader and bring him back to the element (bring it into focus).

Closed Thread

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