extract($_REQUEST);
ob_start();
ob_clean();
session_start();
include 'dilg/cnt/join.php';
$Date=date('Y-m-d h:i:s',time());
if(isset($_POST['submit']))
{
//image upload starts
$filename = $_FILES['signature']['name'];
$filesize = $_FILES['signature']['size'];
$ext = strtolower(substr(strrchr($filename, "."), 1));
$image_size = ($filesize / 1024);
if($filename != '')
{
if($ext == 'jpg' or $ext == 'jpeg' or $ext == 'png')
{
$path =date('d-m-Y_h-i-s').'_'.str_replace(" ","_",$filename);
$image_path = "uploads/signature/".$path;
$up_path = "signature/".$path;
copy($_FILES['signature']['tmp_name'],$image_path);
chmod($image_path,0777);
$max_width = '370';
$max_height = '228';
if($ext=='jpg') $ext = 'jpeg';
$t = 'imagecreatefrom'.$ext;
$t = str_replace('.','',$t);
$img = $t($image_path);
$orig_width = imagesx( $img );
$orig_height = imagesy( $img );
$width = $orig_width;
$height = $orig_height;
# taller
if ($height > $max_height) {
$width = ($max_height / $height) * $width;
$height = $max_height;
}
# wider
if ($width > $max_width) {
$height = ($max_width / $width) * $height;
$width = $max_width;
}
}
else{
echo "";
}
}
if(empty($_SESSION['letters_code'] ) ||
strcasecmp($_SESSION['letters_code'], $_POST['letters_code']) != 0)
{
$errors = "\n The Captcha Verification does not match!!!";
}
if(empty($errors))
{
//storing web_alumini_register msg to admin starts
$ins_enquiry = mysqli_query($conn,"insert into web_alumini_register set name='$name', father_name='$father_name', dob='$dob', gender='$gender', branch='$branch',batch='$batch',email='$email',mbl_number='$mbl_number',present_status='$present_status',resi_adrss='$resi_adrss',course='$course',org_name='$org_name',higher_address='$higher_address',pursorcmpld='$pursorcmpld',present_emplee='$present_emplee',present_org_name='$present_org_name',present_address='$present_address',designation='$designation',enter_dtl='$enter_dtl',enter_org_name='$enter_org_name',enter_address='$enter_address',nature_of_work='$nature_of_work',suggestion='$suggestion',place='$place',date='$date',signature='$up_path', adate='$Date'");
$messages= '
| PPG College of Physiotherapy |
|
| |
Alumni Form details from '.$name.' |
| |
Name |
'.$name.' |
| |
Father |
'.$father_name.' |
| |
Date Of Birth |
'.$dob.' |
| |
Gender |
'.$gender.' |
| |
E-mail |
'.$email.' |
| |
See Full Details on Your Admin Panel |
| |
Warm Regards, |
|
| |
PPG College of Physiotherapy |
|
|
';
// echo $messages;
// exit;
$subject="Alumni Form Details From ".$name;
$to="ppgphysiotherapy@ppg.edu.in,racky123cbe@gmail.com";
// Additional headers
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'Sender: ' . "\r\n";
$headers .= 'From: '.$name.' ' . "\r\n";
$headers .= 'Reply-To: '.$name.' <'.$email.'>' . "\r\n";
$res1=mail($to , $subject, $messages, $headers, '-fnoreply@ppg.edu.in');
$msg="Your Details Are Mailed Successfully. We Will Contact You As Soon As Possible!!!";
// echo "";
// exit;
}
}
?>
Alumni Registration | PPG College of Physiotherapy