gingank 0 Junior Poster

I create a three file attachment on the index
i name it file attach,file attach2,file attach3

When i wan to upload it only upload one can some one help below is the code.

$fileatt      = $_FILES['fileatt']['tmp_name'];
$fileatt_type = $_FILES['fileatt']['type'];
$fileatt_name = $_FILES['fileatt']['name'];

$fileatt2      = $_FILES['fileatt2']['tmp_name'];
$fileatt2_type = $_FILES['fileatt2']['type'];
$fileatt2_name = $_FILES['fileatt2']['name'];

$fileatt3      = $_FILES['fileatt3']['tmp_name'];
$fileatt3_type= $_FILES['fileatt3']['type'];
$fileatt3_name = $_FILES['fileatt3']['name'];
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.