Click here to Skip to main content
15,880,427 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to learn how to submit data to a form on an html page.

eg:

<form action="http://coolpage.com/collpage.php" method="post" id="helloform">
<p><input type="text" name="author" id="author" value="" size="22" tabindex="1" />
<label for="author"><small>Name (required)</small></label></p>
<p><input type="text" name="email" id="email" value="" size="22" tabindex="2" />
<label for="email"><small>E-mail (required)</small></label></p>
<p><input type="text" name="url" id="url" value="" size="22" tabindex="3" />
<label for="url"><small>Website</small></label></p>
<p><textarea name="your_info" id="your_info" cols="100%" rows="10" tabindex="4"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
<input type="hidden" name="my_ID" value="304" id="my_ID" />
<input type="hidden" name="mynt" id="mynt" value="0" />
</p>

</form>


How do I fill the page through vb.net or C# without using a webbrowser control (I know how to do it with webbrowser)?

I don't remember but we can submit forms which have 'post' action.

Any code snippet or other reference would be appreciated.
Posted
Updated 25-Aug-10 0:14am
v3
Comments
Dalek Dave 25-Aug-10 6:07am    
Minor Edit for Grammar.

1 solution

I have no idea how to do this, but lucky for you, I know how to use google[^].
 
Share this answer
 
Comments
Dalek Dave 25-Aug-10 18:12pm    
Funny man :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900