I am using a webclient to get info from a web site. The website uses your zipcode in a variable. I want to pass the zip code in a variable to the website and get the page that follows using my webclient. How can I pass the variable to the webpage and then get the webpage that coems up after that? The webpage uses the Post method to send th zipcode. Here is the code that the website uses to pass the zipcode:
Someone suggested setting a webbrowser to not be visible and then getting a reference to the variable, but I have no idea to do this. So does anyone have any ideas of how to pass the zipcode as a variable to the website and then get the page that follows?
Chester
Code:
<form name="searchForm" method="post" target="_top" action="/lkn?action=search&rn=none" style="margin-bottom:0; padding:0; border:0; margin:0">
<input name="query" type="text" id="searchfield" size="10" maxlength="25">
<a href="javascript:submitSearchForm()"><img src="images/general/redesign/images/search.gif" alt="Search." width="44" height="25" align="top" border="0"></a>
</form>
Someone suggested setting a webbrowser to not be visible and then getting a reference to the variable, but I have no idea to do this. So does anyone have any ideas of how to pass the zipcode as a variable to the website and then get the page that follows?
Chester