heyphp 0 Newbie Poster

Hello,
i have two questions to ask first the code below work and send the information on firefx only i cant send on internet explorer, second i am new to php i need to send an attachemnt as word or pdf.
can any one help.
Thanks

<?php 


error_reporting( 0 ) ;



if (isset($_POST["submit"])) 

{ 

$submit = $_POST['submit'];

}



//$email = trime(textencode($HTTP_POST_VARS["E-mailAddress"]));

          if ($submit == "submit") {

                $firstname = $_POST['firstname'];

                $lastname= $_POST['lastname'];

                $middlename= $_POST['middlename'];

                $dob= $_POST['dob'];

                $gender= $_POST['gender'];

                $marital= $_POST['marital'];

                $building= $_POST['building'];

                $city= $_POST['city'];

                $country= $_POST['country'];

                $phone= $_POST['phone'];

                $mobile= $_POST['mobile'];

                $emailaddress= $_POST['emailaddress'];

                $nationality= $_POST['nationality'];

                $nationality1= $_POST['nationality1'];

                $diploma= $_POST['diploma'];

                $university= $_POST['university'];

                $yearsofexp= $_POST['yearsofexp'];

                $position= $_POST['position'];

                $department= $_POST['department'];

                $appyingfor= $_POST['appyingfor'];

                $textmotivation= $_POST['textmotivation'];

                $joindate= $_POST['joindate'];

                $relocation= $_POST['relocation'];

                $countryofwork= $_POST['countryofwork'];

                $salary= $_POST['salary'];

                $cv= $_POST['cv'];



            // To, Subject, Message   

            $to = "careers@m";



            $subject = "Career Application - s Website";



            $message = "The form has been filled : <br>";

            $message .= "<br> First Name : " . $firstname;

            $message .= "<br> Last Name : " . $lastname;

            $message .= "<br> Middle Name : " . $middlename;

            $message .= "<br> Date of Birth : " . $dob;

            $message .= "<br> Gender : " . $gender;

            $message .= "<br> Marital Status : " . $marital;

            $message .= "<br> Building : " . $building;

            $message .= "<br> City : " . $city;

            $message .= "<br> Country : " . $country;

            $message .= "<br> Phone : " . $phone;

            $message .= "<br> Mobile : " . $mobile;

            $message .= "<br> Email Address : " . $emailaddress;

            $message .= "<br> Nationality : " . $nationality;

            $message .= "<br> Diploma : " . $diploma;

            $message .= "<br> University : " . $university;

            $message .= "<br> Years of experience : " . $yearsofexp;

            $message .= "<br> Position applying for : " . $position;

            $message .= "<br> Department : " . $department;

            $message .= "<br> Applying for a  : " . $appyingfor;

            $message .= "<br> Motivation Text  : " . $textmotivation;

            $message .= "<br> Joining Date  : " . $joindate;

            $message .= "<br> Willing to relocate  : " . $relocation;

            $message .= "<br> Country of work  : " . $countryofwork;

            $message .= "<br> Salary : " . $salary;







            // Hearders  

            $headers  = 'MIME-Version: 1.0' . "\r\n";

            $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";



            // Additional headers

            $headers .= 'To: Website Administrator <info@m>' . "\r\n";

            $headers .= 'From: Mictel Solutions Website <info@m>' . "\r\n";

            //$headers .= 'Cc: [email]birthdayarchive@example.com[/email]' . "\r\n";

            //$headers .= 'Bcc: [email]birthdaycheck@example.com[/email]' . "\r\n";



// Mail it

        //echo $message;

          mail($to, $subject, $message, $headers);

          header("Location:careers_done.php"); 

          //echo $to; 

          //echo $subject;

          //echo $message;



          }

          ?>

<!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" />

<title>:: MICTEL Solutions ::</title>

<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>

<link href="css/mictel.css" type="text/css" rel="stylesheet" />

<link href="style/yav-style.css" rel="stylesheet" type="text/css" />

<script src="js/yav.js" type="text/javascript"></script>

<script src="js/yav-config_en.js" type="text/javascript"></script>

<script>

var rulesc=new Array();

rulesc[0]='firstname:Fisrt Name|required';

rulesc[1]='lastname:Last Name|required';

rulesc[2]='middlename:Middle Name|required';

rulesc[3]='dob:Date of Birth|required';

rulesc[4]='gender:Gender|required';

rulesc[5]='marital:Marital Status|required';

rulesc[6]='building:Building|required';

rulesc[7]='city:City|required';

rulesc[8]='country:Country|required';

rulesc[9]='phone:Phone|required';

rulesc[10]='mobile:Mobile|required';    

rulesc[11]='emailaddress:Email Address|email';

rulesc[12]='emailaddress:Email Address|required';

rulesc[13]='nationality:Nationality|required';

rulesc[14]='diploma:Diploma|required';

rulesc[15]='university:University|required';

rulesc[16]='yearsofexp:Years of Experience|required';

rulesc[17]='position:Position|required';

rulesc[18]='department:Department|required';

rulesc[19]='appyingfor:Position Applying for|required';

rulesc[20]='textmotivation:Motivation Text|required';

rulesc[21]='relocation:Willing to relocate|required';

rulesc[22]='countryofwork:Country of work|required';

rulesc[23]='salary:Salary|required';

rulesc[24]='joindate:Joining Date|required';



</script>

<link rel="stylesheet" type="text/css" href="css/epoch_styles.css">

<script language="javascript" src="js/epoch_classes.js"></script>

<script type="text/javascript">

    var dp_cal;     

window.onload = function () {

    if (document.getElementById('dob')) 

        dp_cal  = new Epoch('epoch_popup','popup',document.getElementById('dob'));

};

</script>

</head>

<body>

<div align="center">

  <script type="text/javascript">

AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','900','height','160','title','MICTEL SOLUTIONS','src','swf/top','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','swf/top' ); //end AC code

</script>

  <noscript>

  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="900" height="160" title="">

    <param name="movie" value="swf/top.swf" />

    <param name="quality" value="high" />

    <embed src="swf/top.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="900" height="160"></embed>

  </object>

  </noscript>



  </div>  

<div align="center">  

  <script type="text/javascript">

AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','900','height','260','title','MICTEL SOLUTIONS','src','swf/bottom','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','swf/bottom' ); //end AC code

</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="900" height="260" title="">

    <param name="movie" value="swf/bottom.swf" />

    <param name="quality" value="high" />

    <embed src="swf/bottom.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="900" height="260"></embed>

  </object></noscript>

</div>

<div class="main">

    <div class="profile">

    <div class="left_panel">

        <div id="left_title">Careers</div>

        <div id="left_link">Apply for a job</div>

        <div id="left_link"><a href="cav.php">Current available vacancies</a></div>

    </div>

    <div class="content">

    <div id="profile_img"><img src="images/careers_form.jpg" /></div>

    <div id="profile_title"><img src="images/careers_title.gif" /></div>

    <div id="profile_text"><br />is always looking for great talent, so why not join us, and become a part of the team!<br /><br />

We can offer you new challenges and great opportunities for personal development, working with and learning from qualified and committed colleagues. <br /> There are opportunities to work within project management, development, networking, systems engineering in a company where there's a huge cross-organizational cooperation and where our customers are our close partners in all projects.<br /><br />

Send us your resume and we will contact you when suitable positions become available.



.</div>

    <div id="contact_form">

    <form method="post" action="careers.php" enctype="application/x-www-form-urlencoded" name="careerscontact" id="careerscontact" onsubmit="return performCheck('careerscontact', rulesc, 'classic');" "enctype="multipart/form-data">

    <table cellpadding="5" cellspacing="5" border="0" class="contact_form">

        <tr>

            <th>First Name *</th>

            <td><input name="firstname" id="firstname" type="text" /></td>

        </tr>

        <tr>

            <th>Last Name *</th>

            <td><input name="lastname" id="lastname" type="text" /></td>

        </tr>

        <tr>

            <th>Middle Name *</th>

            <td><input name="middlename" id="middlename" type="text" /></td>

        </tr>

        <tr>

            <th>Date of Birth *</th>

            <td><input name="dob" id="dob" type="text" /></td>

        </tr>

        <tr>

            <th>Gender *</th>

            <td><input name="gender" type="radio" id="gender" value="male" /> Male 

                <input name="gender" type="radio" id="gender" value="female"  /> Female

            </td>

        </tr>

        <tr>

            <th>Marital Status *</th>

            <td><select name="marital" id="marital">

            <option value="single">Single</option>

            <option value="married">Married</option>

            </select>

            </td>

        </tr>

        <tr>

            <th>Building *</th>

            <td><input name="building" id="building" type="text"/></td>

        </tr>

        <tr>

            <th>City *</th>

            <td><input name="city" id="city" type="text"/></td>

        </tr>

        <tr>

            <th>Country *</th>

            <td><input name="country" id="country" type="text"/></td>

        </tr>

        <tr>

            <th>Phone *</th>

            <td><input name="phone" id="phone" type="text"/></td>

        </tr>

        <tr>

            <th>Mobile *</th>

            <td><input name="mobile" id="mobile" type="text"/></td>

        </tr>

        <tr>

            <th>Email Address * </th>

            <td><input name="emailaddress" id="emailaddress" type="text"/></td>

        </tr>

        <tr>

            <th valign="top">Nationality * </th>

            <td><input name="nationality" id="nationality" type="text"/> <br /><br />

                <input name="nationality1" id="nationality1" type="text"/></td>

        </tr>

        <tr>

            <th>Diploma *</th>

            <td><input name="diploma" id="diploma" type="text"/></td>

        </tr>

        <tr>

            <th>University *</th>

            <td><input name="university" id="university" type="text"/></td>

        </tr>

        <tr>

            <th>Years of experience * </th>

            <td><input name="yearsofexp" id="yearsofexp" type="text"/></td>

        </tr>

        <tr>

            <th>Position Applying for *</th>

            <td><input name="position" id="position" type="text"/></td>

        </tr>

        <tr>

            <th>Department *</th>

            <td><select name="department" id="department">

            <option>-- choose department --</option>

            <option value="Design">Design</option>

            <option value="Development">Development</option>

            <option value="Infrastructure">Infrastructure</option>

            <option value="Networking">Networking</option>           

            </select></td>

        </tr>

        <tr>

            <th>Are you applying for *</th>

            <td><select name="appyingfor" id="appyingfor">

            <option value="Full Time">Full Time</option>

            <option value="Part Time">Part Time</option>

            </select></td>

        </tr>

        <tr>

            <th valign="top" colspan="2">What motivated you to  *apply to this position in  ? *</th>

        </tr>

        <tr>

            <th></th>

            <td><textarea rows="4" name="textmotivation" id="textmotivation"></textarea></td>

        </tr>

        <tr>

            <th>If hired, how many days do you need after acceptance to join us ? *</th>

            <td><select name="joindate" id="joindate">

            <option value="Immediately">Immediately</option>

            <option value="1 week">1 week</option>

            <option value="2 weeks">2 weeks</option>

            <option value="1 month">1 month</option>

            <option value="2 months">2 months</option>

            <option value="more than 2 months">more</option>

            </select></td>

        </tr>

         <tr>

            <th>Are you willing to travel as part of your job ? *</th>

            <td><input name="relocation" type="radio" id="relocation" value="yes" /> Yes 

                <input name="relocation" type="radio" id="relocation" value="no" /> No</td>

        </tr>

        <tr>

            <th>Preferred Country of work *</th>

            <td><select name="countryofwork" id="countryofwork">

            <option value="test">test</option>

            <option value="test1">test1</option>

            <option value="test2">test2</option>

            <option value="test3">test3</option>

            <option value="test4">test4</option>

            </select></td>

        </tr>

         <tr>

            <th>Expected Salary *</th>

            <td><input name="salary" id="salary" type="text"/></td>

        </tr>

        <tr>

            <th>Upload your CV *</th>

            <td><input name="cv" id="cv" type="file"/></td>

        </tr>

        <tr>

            <td colspan="2" align="right"><input id="submit_but" name="submit" value="submit" type="image" src="images/submit_button.gif" /></td>

        </tr>

    </table>

    </form>

    </div>



  </div>

  </div>

  </div>

<? include "bottom.php"; ?>

</body>

</html>