As a budding web developer, I am in the process of creating a simple website. I have a query regarding how to extract a value from a drop-down list form in HTML, click the submit button, and get redirected to a new page based on the selection made. Specifically, I want each month to lead to a distinct webpage. Below is the snippet of code I am working with:
<form action="" method="get">
<p>Month</p>
<select name="months">
<option value="march2015">March, 2015</option>
<option value="april2015">April, 2015</option>
<option value="may2015">May, 2015</option>
<option value="june2015">June, 2015</option>
<option value="july2015">July, 2015</option>
</select>
<input type="submit" value="Submit">
</form>
I am a bit confused about what to specify for the "action" attribute. Since I am not utilizing a web hosting service and just previewing the file in my browser, I would appreciate any guidance on this matter.