kenlyle
11th August 2006, 01:17 AM
I want to collect data from a page where there is a pulldown to select a U.S. state, then a results page is returned, and I want to mine the results page.
The <form> code is:
<form method="post" action="search.php">
<input type="hidden" name="searchtype" value="state">
Browse by Country/State
<select size="1" name="state">
<option value="">US AND INTERNATIONAL LOCATIONS</option>
<option value="">--US LOCATIONS--</option>
<option value="Alabama">Alabama</option>
<option value="Alaska">Alaska</option>
<option value="Arizona">Arizona</option>
<option value="Arkansas">Arkansas</option>
<option value="California">California</option>
...etc...
What's the form of the URL to start with, and how do I loop through the states?
Thanks,
Ken
The <form> code is:
<form method="post" action="search.php">
<input type="hidden" name="searchtype" value="state">
Browse by Country/State
<select size="1" name="state">
<option value="">US AND INTERNATIONAL LOCATIONS</option>
<option value="">--US LOCATIONS--</option>
<option value="Alabama">Alabama</option>
<option value="Alaska">Alaska</option>
<option value="Arizona">Arizona</option>
<option value="Arkansas">Arkansas</option>
<option value="California">California</option>
...etc...
What's the form of the URL to start with, and how do I loop through the states?
Thanks,
Ken