Hi.
I need some help with the Web Browser Control. You see. I want WB to fill in a form and then "POST" it like if you did it manually.
As you can see in the example below I want my program to fill in the "username" and "password" and then POST the information.
Can you please help me??? I'm desperate..
Best regards Johan Ryberg, SWEDEN
Example htmlpage:
Code:<HTML> <HEAD> <SCRIPT> <!-- function newPane(fls_host) { pageUrl = "http://" + fls_host + "/serviceSelection.php3"; window.open(pageUrl,"selection",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=300,height=300'); } //--> </SCRIPT> <SCRIPT> <!--- var isButtonPressed = false; function flsSubmit() { if (isButtonPressed == false) { isButtonPressed = true; document.pwdenter.submit(); } } //--> </SCRIPT> <FORM NAME="pwdenter" ACTION="userlookup.php3" METHOD="POST"> <INPUT NAME="timestamp" TYPE=HIDDEN VALUE="948816493"> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%" HEIGHT="100%"> <TR><TD> <CENTER> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"> <TR><TD> <IMG SRC="telialogo.gif" ALT="logo" BORDER="0"> <FONT SIZE="-1" FACE="Geneva, Arial"> <BR><BR> Mata in ditt användarnamn och lösenord nedan.<BR> Tryck sedan på "Logga in". <BR><BR> Användarnamn: <BR><INPUT NAME="username"><BR> Lösenord: <BR><INPUT NAME="password" TYPE=PASSWORD onBlur="this.form.username.focus();"> <BR> <INPUT TYPE="BUTTON" NAME="submitForm" VALUE="Logga in " onClick="flsSubmit() "> </TABLE> </TABLE> </FORM> </body> </HTML>
------------------
Best Regards rancor
[email protected]
http://www.sajberhem.nu




Reply With Quote