I am writing a program that needs to log in to a web site. I have used the following code in my event handler.
If WebBrowser1.ReadyState = WebBrowserReadyState.Complete Then
WebBrowser1.Document.All("password").SetAttribute("value", Password)
WebBrowser1.Document.All("email").SetAttribute("value", email1)
'WebBrowser1.Document.All("comments").SetAttribute("value", comment1)
WebBrowser1.Document.Forms(1).InvokeMember("submit")
End If
the email and password fill in fine but the submit button is not activated. The web sit used the following in their HTML.
<form method="post" action="login.php" onsubmit="encrypt(this)">
<input type="hidden" name="action" value="submit">
<input name="salt" type="hidden" value="1269306573">
<strong>Email Address:</strong><br />
<input type="text" name="email" size="30" maxlength="100"><br /><br />
<strong>Password:</strong><br />
<input type="password" name="password" size="32" maxlength="40"><br /><br />
<input class="button" type="submit" name="submit" value="login">
</form>
any ideas?