Results 1 to 4 of 4

Thread: help with form verification

  1. #1
    Join Date
    Aug 2006
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Red face help with form verification

    can some one help me?


    plssssssssssss!

    i need the code to create aform that confirms the data enter by the user. for example...

    name.........
    e-mail....
    code.....

    etc....

    and if they do not fill the empty areas...a messages will show saying ....

    please enter your"xxxxxxxxx"

    before is submited...


    need help....

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    For checking to see if a checkbox was checked:

    Code:
    function verify() {
    var checkbox1 = document.getElementById("thecheckboxesid")
    if (!checkbox1.checked) {alert("Please fill in all information.")}
    }
    For checking to see if an input field's data was entered:

    Code:
    function verify() {
    var input1 = document.getElementById("theinputsid")
    if (!input1.value) {alert("Please fill in all information.")}
    }
    Etc. You can edit it from there.
    - Mike

  3. #3
    Join Date
    Aug 2006
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    where do i insert this?

  4. #4
    Join Date
    Aug 2006
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i have created a form with a submit button, but now i need to redirect after is sumited to a message such as...thanks for your....info ...! or so.. in the sane window
    and a closed button in the same window after


    need some help!..

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
  •