oIE = CREATEOBJECT("InternetExplorer.Application") oIE.Navigate("www.levelextreme.com") INKEY(1) nStartSeconds = SECONDS() DO WHILE oIE.Document.ReadyState <> "complete" AND (SECONDS()-nStartSeconds < 30) ENDDO IF oIE.Document.ReadyState <> "complete" MESSAGEBOX("Universalthread is unavailable") oie.Visible = .T. RETURN .F. ENDIF oie.document.forms(0).Key.Value = lcUsername oIE.Document.Forms(0).Password.Value = lcPassword oIE.Document.Forms(0).Submit() oIE.Visible = .T.Where the web page's fields are accessible through IE's DOM, the forms collection in this case.