Aeronautical Institute of Bangladesh (AIB)

Application Form

Please select courses you like. ‘;
// functions for data validations
// Test Fild Validation (This function will remove double space within name and blank space before and after name)
function txtfilter($data)
{
$data = preg_replace(‘/[\s\t\n\r\s]+/’, ‘ ‘, $data);
$data = trim($data);
return $data;
}

// Empty Data Entry Checking (This function will check wheter data is empty or not or special character is enteres.)
$txtError = ‘ This field can not be empty and special character is not allowed. ‘;
$eduError = ‘ Required ‘;
function isTxtEmpty($data)
{
$data = txtfilter($data);
if($data == null OR $data == “” OR !preg_match(“/^[a-z A-Z . ]*$/”, $data))
{
return 1;
}
else { return $data;}
}

//Address Validation
$adrsError = ‘ This field can not be empty only numbers, characters and . # @ / – are not allowed. ‘;
function isAddressTrue($data)
{
if($data == null OR $data == “” OR !preg_match(“/^[0-9 a-z A-Z . – _ @ # ]*$/”, $data))
{
return 1;
}
}

// Email ID Validator
$emailError = ‘ Please enter a valid Email ID‘;
function isEmailTrue($data)
{
$data = filter_var($data, FILTER_SANITIZE_EMAIL);
if(!preg_match(“/^[0-9 a-z A-Z . – _ @ ]*$/”, $data) OR !filter_var($data, FILTER_VALIDATE_EMAIL))
{
return 1;
}
}

// Phone Number Validation will allowe only + – and numbers
$phError = ‘ Enter a valid Phone number ‘;
function txtphonefilter($data)
{
$phLength = strlen(str_replace(array(‘-‘,’+’), ”,$data)); // return the length of a phone number

if(!preg_match(“/^[0-9 + -]*$/”, $data) OR $data == “” OR $data == null OR $phLength <= 6 OR $phLength >= 14)
{
return 1;
}
}
function txtphonefilter2($data)
{
$phLength = strlen(str_replace(array(‘-‘,’+’), ”,$data)); // return the length of a phone number
if(!preg_match(“/^[0-9 + -]*$/”, $data) OR $phLength <= 6 OR $phLength >= 14)
{
return 1;
}
}
//Birth Day Validator

$bDateError = ‘ Please Enter a Correct Birth Date. ‘;
function is_leap_year($year)
{
return ((($year % 4) == 0) && ((($year % 100) != 0) || (($year %400) == 0)));
}
function isBDay($day, $month, $year)
{
// Leap Year

if($day == “Day” OR $month ==”Month” OR $year == “Year” OR ($day > “30” AND ($month ==”04″ OR $month ==”06″ OR $month ==”09″ OR $month ==”11″))
OR (!is_leap_year($year) AND $month ==”02″ AND $day > “28”)
OR (is_leap_year($year) AND $month ==”02″ AND $day > “29”)
)
{
return 1;
}
}
// Year Validation

// End of Validatoins
if(isset($_POST[‘submitApplyNow’]))
{
$stdName = $_POST[‘txtstdName’];
$stdEmail = $_POST[‘txtemail’];
$stdMobile = $_POST[‘txtstdMobile’];
//date of Birth
$stdBDay = $_POST[‘sltbday’];
$stdBMonth = $_POST[‘sltbmonth’];
$stdBYear = $_POST[‘sltbyear’];

$StdNationality = $_POST[‘txtStdNationality’];
$FName = $_POST[‘txtFName’];
$FMobile = $_POST[‘txtFMobile’];
$MName = $_POST[‘txtMName’];
$MMobile = $_POST[‘txtMMobile’];
$PresentAdrs = $_POST[‘txtPresentAdrs’];
$PermanentAdrs = $_POST[‘txtPermanentAdrs’];
$Phone = $_POST[‘txtPhone’];

//Education Qualifications
// for SSC
$txtSSC = $_POST[‘txtSSC’];
$txtSSCInstitute = $_POST[‘txtSSCInstitute’];
$txtSSCYear = $_POST[‘txtSSCYear’];
$txtSSCGroup = $_POST[‘txtSSCGroup’];
$txtSSCResult = $_POST[‘txtSSCResult’];
$txtSSCRem = $_POST[‘txtSSCRem’];

//for HSC
$txtHSC = $_POST[‘txtHSC’];
$txtHSCInstitute= $_POST[‘txtHSCInstitute’];
$txtHSCYear = $_POST[‘txtHSCYear’];
$txtHSCGroup = $_POST[‘txtHSCGroup’];
$txtHSCResult = $_POST[‘txtHSCResult’];
$txtHSCRem = $_POST[‘txtHSCRem’];

//For Others
$txtOthers = $_POST[‘txtOthers’];
$txtOthersInstitute = $_POST[‘txtOthersInstitute’];
$txtOthersYear = $_POST[‘txtOthersYear’];
$txtOthersGroup = $_POST[‘txtOthersGroup’];
$txtOthersResult = $_POST[‘txtOthersResult’];
$txtOthersRem = $_POST[‘txtOthersRem’];

// For Others 1
$txtOthers1 = $_POST[‘txtOthers1’];
$txtOthers1Institute = $_POST[‘txtOthers1Institute’];
$txtOthers1Year = $_POST[‘txtOthers1Year’];
$txtOthers1Group = $_POST[‘txtOthers1Group’];
$txtOthers1Result = $_POST[‘txtOthers1Result’];
$txtOthers1Rem = $_POST[‘txtOthers1Rem’];

// For Others 2
$txtOthers2 = $_POST[‘txtOthers2’];
$txtOthers2Institute = $_POST[‘txtOthers2Institute’];
$txtOthers2Year = $_POST[‘txtOthers2Year’];
$txtOthers2Group = $_POST[‘txtOthers2Group’];
$txtOthers2Result = $_POST[‘txtOthers2Result’];
$txtOthers2Rem = $_POST[‘txtOthers2Rem’];

//checkbox validator
if(isset($_POST[‘LC1’])){ $LC1=$_POST[‘LC1’];}
if(isset($_POST[‘LC2’])){ $LC2=$_POST[‘LC2’];}
if(isset($_POST[‘LC3’])){ $LC3=$_POST[‘LC3’];}

//Short Courses
if(isset($_POST[‘SC1’])){ $SC1=$_POST[‘SC1’];}
if(isset($_POST[‘SC2’])){ $SC2=$_POST[‘SC2’];}
if(isset($_POST[‘SC3’])){ $SC3=$_POST[‘SC3’];}
if(isset($_POST[‘SC4’])){ $SC4=$_POST[‘SC4’];}
if(isset($_POST[‘SC5’])){ $SC5=$_POST[‘SC5’];}
if(isset($_POST[‘SC6’])){ $SC6=$_POST[‘SC6’];}
if(isset($_POST[‘SC7’])){ $SC7=$_POST[‘SC7’];}
if(isset($_POST[‘SC8’])){ $SC8=$_POST[‘SC8’];}

if( $LC1 == “” AND $LC2==”” AND $LC3 == “” AND $SC1 == “” AND $SC2 == “” AND $SC3 == “” AND $SC4 == “” AND $SC5 == “” AND $SC6 == “”)
{
$crsError = 1;
}
else { $crsError = 0;}

//Why are you interested inthis technoloty
$txtarea_interest = htmlspecialchars($_POST[‘txtarea_interest’]);

if(isset($_POST[‘chkExperience’])){ $chkExperience=$_POST[‘chkExperience’];} // Experiences check box

$txtJobDesc = $_POST[‘txtJobDesc’]; // Job Description

if(isset($_POST[‘EXBC1’])){ $EXBC1=$_POST[‘EXBC1’];}
if(isset($_POST[‘EXBC2’])){ $EXBC2=$_POST[‘EXBC2’];}
if(isset($_POST[‘EXBC3’])){ $EXBC3=$_POST[‘EXBC3’];}
if(isset($_POST[‘EXBC4’])){ $EXBC4=$_POST[‘EXBC4’];}
if(isset($_POST[‘EXBC5’])){ $EXBC5=$_POST[‘EXBC5’];}
if(isset($_POST[‘EXBC6’])){ $EXBC6=$_POST[‘EXBC6’];}

if(isset($_POST[‘EXRC1’])){ $EXRC1=$_POST[‘EXRC1’];}
if(isset($_POST[‘EXRC2’])){ $EXRC2=$_POST[‘EXRC2’];}
if(isset($_POST[‘EXRC3’])){ $EXRC3=$_POST[‘EXRC3’];}
if(isset($_POST[‘EXRC4’])){ $EXRC4=$_POST[‘EXRC4’];}
if(isset($_POST[‘EXRC5’])){ $EXRC5=$_POST[‘EXRC5’];}
if(isset($_POST[‘EXRC6’])){ $EXRC6=$_POST[‘EXRC6’];}

//check whether all validaton ok or no, If ok then forward to Database else back to the form

}

// goes the code for showing the form at load and error found load
if( isTxtEmpty($stdName) == 1 OR
isEmailTrue($stdEmail) == 1 OR
txtphonefilter($stdMobile) == 1 OR
isBDay($stdBDay, $stdBMonth, $stdBYear) == 1 OR
isTxtEmpty($StdNationality) == 1 OR
isTxtEmpty($FName) == 1 OR
isTxtEmpty($MName) == 1 OR
isAddressTrue($PresentAdrs)== 1 OR
isAddressTrue($PermanentAdrs)== 1 OR
isTxtEmpty($txtSSC) == 1 OR
isTxtEmpty($txtSSCInstitute) == 1 OR
$txtSSCYear == “Year” OR
$txtSSCYear == “” OR
isTxtEmpty($txtSSCGroup) == 1 OR
$txtSSCResult > 5 OR
$txtHSCResult < 1 OR isTxtEmpty($txtHSC) == 1 OR isTxtEmpty($txtHSCInstitute) == 1 OR $txtHSCYear == "Year" OR $txtHSCYear == "" OR isTxtEmpty($txtSSCGroup) == 1 OR $txtHSCResult > 5 OR
$txtHSCResult < 1 OR ( $LC1 == "" AND $LC2 == "" AND $LC3 == "" AND $SC1 == "" AND $SC2 == "" AND $SC3 == "" AND $SC4 == "" AND $SC5 == "" AND $SC6 == "" AND $SC7 == "" AND $SC8== "") OR isTxtEmpty($txtarea_interest) == 1 OR ( $chkExperience == 1 AND $txtJobDesc =="")) { // if error found the following code will show again.. ?>

“>

Student Name* : “; } ?>
Email ID *
: “; } ?>
Student’s Mobile No.*
(i.e +8801500000000)
: “; } ?>
Date of Birth*
: “; } ?>

Nationality* : “; } ?>
Father’s Name*
: “; } ?>
Father’s Mobile No.
: Mother’s Name* : “; } ?>
Mother’s Mobile No.
: Present Address* : “; } ?>
Permanent Address*
: “; } ?>
Telephone No.
: Academic Information (SSC / HSC /Equivalent info required* )
Qualification/
Degree
Name of Institution Passing Year Group Division/GPA Remarks
SSC Or Equivalent “; } ?>
“; } ?>
“; } ?>
5 Or $txtSSCResult < 1 )){echo $eduError . "
“; } ?>
HSC Or Equivalent
“; } ?>
“; } ?>
“; } ?>
5 Or $txtHSCResult < 1 )){echo $eduError . "
“; } ?>
Choise of Courses*
4 Years Specialized Short Courses
>Aircraft Maintenance Engineering (AME)
>Telecommunication Engineering
>Electrical Engineering
>Aviation Management – 3 Months
>Cabin Crew/Air Hostess – 3 Months
>Travel, Tourism & Ticketingg – 3 Months
>Aircraft Ground Support & Handling Management – 3 Months
>Aviation Management – 6 Months
>Cabin Crew/Air Hostess – 6 Months
>Travel, Tourism & Ticketingg – 6 Months
>Aircraft Ground Support & Handling Management – 6 Months
Why you are interested in this technology? *

“; } ?>

Only For Experienced Aircraft Maintenance Personnel (Click checkbox for details): >
>

Job Description* :

Basic Courses Duration Refresher courses Duration
>1. Airworthiness Legislation 03 Weeks >1. Airworthiness Legislation 01 Week
>2. Human Performance and Limitations 04 Weeks >2. Airframe 02 Week
>3. Rotorcraft Short Course 04 Weeks >3. Turbine Engine 02 Week

> 4. Piston Engine Short Course
05 Weeks
>4. DC Power & AC Power
02 Week

>5. AC Power Short Course
3.6 Weeks
>5. General Aircraft Instruments
            & Integrated Flight Systems
02 Week

>6. DC Power Short Course
2.4 Weeks
>6. Human Performance & Limitation
03 days



Your request has been submited

Dear Mr. ‘. $studentName . ‘

Your online application form has been submitted successrully containing following information:

Your ID :’ . $id . ‘
Name: ‘ . $studentName . ‘
Mobile : ‘ . $studentMobile . ‘ .


Thank for Your Interest to AIB.


Aeronautical Institute of Bangladesh (AIB)

House # 21, Road # 01, Sector # 13,

Uttara Model Town , Dhaka-1230,
Bangladesh.



Phone: +88 02 8960253

Hotline: +88 01940100100

Cell number: +88 01827557778,

     +88 01742395177, +88 01613604089

     +88 01742395177, +88 01613604089

     +88 04478200001

Email: info@aib.edu.bd, aib.info08@gmail.com



‘;

// To send HTML mail, the Content-type header must be set
$headers = ‘MIME-Version: 1.0’ . “\r\n”;
$headers .= ‘Content-type: text/html; charset=iso-8859-1’ . “\r\n”;

// Additional headers
$headers .= ‘To: ‘. $studentName . ‘<'. $stdEmail . '>‘ . “\r\n”;
$headers .= ‘From: AIB ‘ . “\r\n”;

// Mail it
mail($stdEmail, $subject, $message, $headers);

// Show on Screen

echo ‘

Dear Mr. ‘. $studentName . ‘

Your online application form has been submitted successrully containing following information:

Your ID :’ . $id . ‘
Name: ‘ . $studentName . ‘
Mobile : ‘ . $studentMobile . ‘ .

Your application detail has been sent to your email at ‘. $stdEmail. ‘.

Thank for Your Interest to AIB.


Aeronautical Institute of Bangladesh (AIB)

House # 21, Road # 01, Sector # 13,
Uttara Model Town , Dhaka-1230,
Bangladesh.



Phone: +88 02 8960253

Hotline: +88 01940100100

Cell number: +88 01827557778,

     +88 01742395177, +88 01613604089

     +88 01742395177, +88 01613604089

     +88 04478200001

Email: info@aib.edu.bd, aib.info08@gmail.com

‘;

}

?>