I have a form that is POSTed. I need to take the values and convert them into an array. I know how to do it "longhand," but I'd like to simply loop through all the values and assign them to the array. What is the quickest way to do it?
<form id="form2" name="form2" method="post" action="pagename.php">
<input type="text" name="text1" id="text1" />
<input type="text" name="text2" id="text2" />
<input type="text" name="text3" id="text3" />
<input type="text" name="text4" id="text4" />
<input type="text" name="text5" id="text5" />
<input type="submit" name="button" id="button" value="Submit" />
</form>