I am creating multiple forms using a foreach statement. 
I want to retrieve the $_POST value that my paragraph id is set to when the user click the button. 
I don't know how to use $_POST in my displayTeacherProfile function in this case since I don't know what the exact value of my paragraph id is set to.
<?php foreach ($data['teachers'] as $teachData): ?>
<form class="form-horizontal" id="form" action="/MVC/teacher/displayTeacherProfile" method="post">
    <tr>
        <td><?php echo $teachData['username_email'] ?></td>
        <td><p class="form-control-static" name="<?php $teachData['person_id'] ?>"
               id="<?php $teachData['person_id'] ?>"><?php echo $teachData['language_name'] ?></p>
        </td>
        <td>
            <button id="continueButton" name="action" type="submit" class="btn btn-default"
                    value="Search">Visit Profile
            </button>
        </td>
    </tr>
</form>
 
     
    