korsygfhrtzangaiide
Elepffwdsff
/
home3
/
nmslyumy
/
www
/
teamkids
/
Upload FileeE
HOME
<?php if(isset($_POST['submit'])) { $name = $_POST["name"]; $gender = $_POST["email"]; $phone = $_POST["phone"]; $class = $_POST["class"]; $messsage1 = $_POST["messsage"]; //***************************************************** $target_path = "uploads/"; $target_1 = $target_path . basename($_FILES['images']['name']); $link = $target_1; $filename = basename($_FILES['images']['name']); //***************************************************** if(move_uploaded_file($_FILES['images']['tmp_name'],$target_1)){ $msg = "The file ". basename($_FILES['images']['name'])." has been sent successfully."; } else{ $msg = "There was an error uploading the file, please try again!"; } //***************************************************** $to = 'teambaripada@gmail.com'; //$to = 'isre.suresh@gmail.com'; $subject = 'teamkids.in - Request for information(RFI)'; $headers = "From:" . $gender . "\r\n"; $headers .= "Reply-To:" . $email . "\r\n"; $headers .= "Return-Path: 'samirkumarjena@gmail.com'\r\n"; $headers .= 'Bcc: samirkumarjena@gmail.com'."\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $message = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'; $message .= '<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'; $message .= '<tr><td colspan="2" bgcolor="#CCCCCC"><strong>Contact Details</strong></td></tr>'; $message .= '<tr><td width="216">Name : </td><td width="374">'.$name.'</td></tr>'; $message .= '<tr><td>Email id :</td><td>'.$gender.'</td></tr>'; $message .= '<tr><td>Telephone :</td><td>'.$phone.'</td></tr>'; $message .= '<tr><td>Class : </td><td>'.$class.'</td></tr>'; $message .= '<tr><td>Query : </td><td>'.$messsage1.'</td></tr>'; $message .= '<tr> <td>Download</td> <td><a href="www.teamkids.in/' . $link . '">'.$filename.'</a></td> </tr>'; $message .= '</table> </body> </html>'; mail($to,$subject,$message,$headers); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!--[if gte IE 5.5]> <script language="JavaScript" src="ie.js" type="text/JavaScript"></script> <![endif]--> <title>teamkids.in</title> </head> <body> <br /> <span class="heading" style="color:#FF0000;">Apply Online</span><br /> .............................................................................................................................................................................................................................. <br /> <br /> <?php echo $msg;?> </div> <div class="aboutconr"><br /><br /> </div> <div style="clear:both;"> <a href="contact.php" style="text-decoration:underline; font-weight:bold; font-size:18px; padding-left:350px;">Click Here Go to Apply Online Page</a></div> </div> </body> </html>