Here is my HTML code:
<form name="candidates" action="candidate_thankyou.php" method="post">
<div class="wrap">
<div class="position"> President: <br> </div>
<input type="text" name="president"> <br>
<input type="text" name="president"> <br>
<input type="text" name="president"> <br>
</div>
<div class="wrap">
<div class="position"> Vice President: <br> </div>
<input type="text" name="vp"> <br>
<input type="text" name="vp"> <br>
<input type="text" name="vp"> <br>
</div> ...etc
<input id="submit" type="submit" value="Submit">
</form>
However, when I call var_dump($_POST) in my php file, I only get the last text box value for each input name (eg "president" or "vp"). If I only use the first 2 text boxes, I get an empty string. How can I get all three values from the form?