OK Shawn I tried the code you posted.
and the results are strange.
whent the code runs it hits the if $posting statement and then goes on to the ?"Posting is real, value is " + $Posting.Value as though the if was true. and then nothing is printed. Then it hit the next if and prints 'Fixrates is real'
$ID = 'name'
$PW = 'pwd'
$URL = "https://www.thesite.com/script/lb_login.asp"
$IE = CreateObject("InternetExplorer.Application")
$IE.Visible = 1
$IE.Navigate($URL)
While $IE.Busy and $IE.ReadyState <> 4 and @ERROR = 0 Loop
$IE.Document.getelementbyid("custid").Value = $ID $IE.Document.getelementbyid("pw").Value = $PW
$IE.Document.lblogin.posting.value = 1 $IE.Document.lblogin.Submit()
$Posting = $IE.document.fixrates.posting If $Posting ? "Posting is real, value is " +$Posting.Value ? @error @serror Endif $FixRates = $IE.document.fixrates If $FixRates ? "FixRates is real" Endif
The results of the added line are:
-2147352570 Unknown name
|