get_upload_var($_FILES['attachment']); foreach($files as $file) { $args = array( 'upload_file' => $file, 'upload_directory' => $uDirectory, 'allowed_size' => 512000, 'extension_check' => TRUE, 'upload_overwrite' => TRUE, ); $allowed_extensions = array( 'csv' => TRUE, 'txt' => TRUE, 'doc' => TRUE, 'docx' => TRUE, 'pdf' => TRUE, 'rtf' => TRUE, ); $upload_hook = $object->get_upload($args, $allowed_extensions); //$object->chip_print($upload_hook); if( $upload_hook['upload_move'] == TRUE ) { $upload_output[] = $object->get_upload_move(); } } $mail = new PHPMailer(); /*if($name=='') { $flagname=1; $flag=1; } if (!ereg('^[a-zA-Z0-9_\.\-]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$', $email)) { $flagemail=1; $flag=1; } if(!is_numeric($mobile) && $mobile != "") { $flagmobile=1; $flag=1; } if($telephone!='') { if(!is_numeric($telephone)) { $flagtele=1; $flag=1; } } if($job=='') { $flagjob=1; $flag=1; }*/ $vowels = array(" ", "-"); $fileattachment = str_replace($vowels, '', "upload/".$file[name]); /**/ $mail->AddAddress('', "ELLE Fiction Awards"); $mail->From = $email; $mail->FromName = $name; $mail->Subject = "ELLE Fiction Awards Submission | ".date('D M j G:i Y'); /*if($fileattachment!= 'upload/')*/ if(file_exists($fileattachment)) { $mail->AddAttachment($fileattachment); $mail->MsgHTML("Sumbmission Form

Name: ".$name."
Email: ".$email."
Mobile: ".$mobile."
Age: ".$age."
".nl2br($address)); if($mail->Send()) { $flagMailSuccess=2; } else { $flagMailSuccess=1; } unlink($fileattachment); } else{ $flagMailSuccess=3; } } ?> Elle Fiction Awards


Your message has been sent.

Your message could not be sent, please try again later.

Please attach valid file type without any special characters.


Why hello, you soon-to-be* famous fiction writer. What have you got there? A laugh riot of no more than 2,500 words? What’s that? You also live in India and are above 18? This is destiny. Please register with us, upload your double-spaced Word document of brilliance and await results, which will be announced in the August issue.

If you haven’t written a word yet and have a growing phobia of blank Word documents, don’t worry. Our deadline of June 30 gives you ample time to take on that dastardly piece of software.

*Pending talent, good grammar, luck, what kind of hair day our judges are having and any number of those unknowable reasons that lead to things happening.

**ELLE is not responsible for returning material.

Thank you for taking part. The submissions for ELLE Fiction Awards 2014 are now closed.