mkrausnick
Programmer
Using VFP9, I log into a web site automatically and retrieve status information on insurance applications. The web site is not under my control. They recently re-wrote the login page ad changed the name of the user id and password fields, which of course broke my login routine. The login used to say:
They changed the ids of the fields to "3DUserID" and "3DUserPW" respectively. However, the statements:
fail with the message "syntax error". The problem is that the field IDs begin with a number. If I remove the '3' I get "name not found", which is what I would expect, since the name without the leading '3' is wrong.
I think this is a VFP syntax error, not an HTML syntax error. Is there another way to specify the field IDs that would make VFP happy?
Mike Krausnick
Dublin, California
Code:
oIE.document.Forms(1).UserID.value = lcUserID
oIE.document.Forms(1).UserPW.value = lcUserPW
They changed the ids of the fields to "3DUserID" and "3DUserPW" respectively. However, the statements:
Code:
oIE.document.Forms(1).[b][red]3D[/red][/b]UserID.value = lcUserID
oIE.document.Forms(1).[b][red]3D[/red][/b]UserPW.value = lcUserPW
fail with the message "syntax error". The problem is that the field IDs begin with a number. If I remove the '3' I get "name not found", which is what I would expect, since the name without the leading '3' is wrong.
I think this is a VFP syntax error, not an HTML syntax error. Is there another way to specify the field IDs that would make VFP happy?
Mike Krausnick
Dublin, California