I am building a PHP email form, this form when submitted will send an email with a link to a CSV file on the server with the submitted information. I am half way through the form when I've hit a a bit of a block.
The client wants to have an "Add row" button to add additional rows to one section of the form. It would be OK if this add row button just added one individual input box but the "Add Row" is essentially adding a section of text boxes. This section has 5 textarea boxes in it. I'm really unsure how to achieve this!
This is the HTML:
<tr>
<td><textarea name="examtype" id="examtype"><?php echo $_SESSION['examType']; ?></textarea></td>
<td><textarea name="examdate" id="examdate"><?php echo $_SESSION['examDate']; ?></textarea></td>
<td><textarea name="examsubject" id="examsubject"><?php echo $_SESSION['examSubject']; ?></textarea></td>
<td><textarea name="examgrade" id="examgrade"><?php echo $_SESSION['examGrade']; ?></textarea></td>
</tr>
Then I am just assigning session variables to them all. Not sure how I approach this...
Thanks in advance!