Sorry I misunderstood the question.
You'd do that in javascript. I will post an example in a minute.
Code:
<script language="javascript">
var attachbutton = document.getElementById("addextraattach");
if (attachbutton)
{
attachbutton.onclick = addField;
}
function addField()
{
var attachBox = document.createElement("input");
attachBox.type = "file";
attachBox.name = "attachments[]";
var attachments = document.getElementById("attachmentdiv");
if (attachments)
{
attachments.appendChild(attachbox);
}
}
</script>
<form action="phMailer.php" method="post" enctype="multipart/form-data">
<p>Attachments
<input type="file" name="pictures[]" />
<div id="attachmentdiv"></div><input type="button" value="Add Another Attachment" id="addextraattach" />
<input type="submit" value="Send" />
</p>
</form>