Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21136

web broswer interaction

$
0
0
ok, so the code ive got it:

Code:

Call bb1.Document.GetElementById("login_name").SetAttribute("value", "username")
Call bb1.Document.GetElementById("password").SetAttribute("value", "password")
Call bb1.Document.Forms("html_login_form").Item("html_login_btn").Click

trying to fill in:

Code:

<form id="html_login_form" method="post" action="/html/login.jsp" name="login"><div><input type="hidden" value="login" name="action"></input><input id="login_name" type="text" placeholder="User Name" autocomplete="on" name="login_name"></input><input id="password" type="password" placeholder="Password" autocomplete="on" name="password"></input><input type="hidden" value="-460380060" name="user_key"></input><input id="html_login_btn" type="submit" value="Login"></input>
but when it clicks the button it tells me there was an error and i need to have a password to sign in, ive done this years ago but not since, and all the examples i come across are all i = 0 untill - i just want to be able to put txt in boxes and have it sign in?

Also im not sure if i need to change the password line so it fills in a password not just plain text...

http://www.mocospace.com/ << site im trying to access :(

Thanks in advance:thumb:

Viewing all articles
Browse latest Browse all 21136

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>