in order for file upload to work, the forms encoding type needs to be set to multipart/for-data.
change the for tag:
<form action="DoDirectPayment.php" method="post" name="registration" id="registration1">
to:
<form action="DoDirectPayment.php" method="post" enctype="multipart/form-data" name="registration" id="registration1">