Web Analytics Made Easy -
StatCounter VB checkform() error - CodingForum

Announcement

Collapse
No announcement yet.

VB checkform() error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • VB checkform() error

    Hi guys, ive got another error again.

    Do anyone of u know what this error means?

    Error:
    Object doesnt support this property or method: "document.form1"

    This appears whenever i try to submit my form and return the checkform() that i have coded using VBScript.

    My codes.

    <SCRIPT LANGUAGE= "VBSCRIPT">
    function checkform()
    dim ftest
    ftest = false
    if checkDirector() then
    ftest = true
    end if
    checkform = ftest
    end function

    function checkDirector()
    dim sendform
    sendform = true
    if (document.form1.DirectorOfOperations.value = "--------Choose Director---------") then
    msgbox ("Please select a director of operations.")

    sendform = false

    end if
    checkDirector = sendform
    end function

    </SCRIPT>

    DirectorOfOperations = dropdownmenu name.
    form1 = form name

    im working on a .htm file that forwards to an asp.

    Please help...thanks help would be greatly appreciated.

  • #2
    ....document1 doesnt seem like a valid statement to me...
    Umm...dude?
    Hell just broke loose...

    Comment


    • #3
      Mitch...wat do you mean?

      Comment

      Working...
      X