title: How to export data entry in html form to .csv file?
body: <p>I am new and beginner and got some codes from internet by searching and editted according to my needs, but now i want to save the data entry in html form to data.csv file, when i click submit button it should save the contents into data.csv in new line for every click submit button. This html codes i am running local computer only. I don't know how do i that here is MWE. Thanking you in advance for any help</p>
  
  <pre><code> &lt;html&gt;
  
     &lt;head&gt;
  
     &lt;script type="text/javascript" src="validate.js"&gt;&lt;/script&gt;
  
     &lt;/head&gt;
  
     &lt;body&gt;
  
     &lt;form action="#" name="StudentRegistration" onSubmit="return(validate());"&gt;
  
  
   &lt;table cellpadding="2" width="20%" bgcolor="99FFFF" align="center"
  
     cellspacing="2"&gt;
  
   &lt;tr&gt;
  
     &lt;td colspan=2&gt;
  
     &lt;center&gt;&lt;font size=4&gt;&lt;b&gt;Student Registration Form&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;
  
     &lt;/td&gt;
  
     &lt;/tr&gt;
  
   &lt;tr&gt;
  
     &lt;td&gt;Name&lt;/td&gt;
  
     &lt;td&gt;&lt;input type=text name=textnames id="textname" size="30"&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
   &lt;tr&gt;
  
     &lt;td&gt;Father Name&lt;/td&gt;
  
     &lt;td&gt;&lt;input type="text" name="fathername" id="fathername"
  
     size="30"&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
     &lt;tr&gt;
  
     &lt;td&gt;Postal Address&lt;/td&gt;
  
     &lt;td&gt;&lt;input type="text" name="paddress" id="paddress" size="30"&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
   &lt;tr&gt;
  
     &lt;td&gt;Personal Address&lt;/td&gt;
  
     &lt;td&gt;&lt;input type="text" name="personaladdress"
  
     id="personaladdress" size="30"&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
   &lt;tr&gt;
  
     &lt;td&gt;Sex&lt;/td&gt;
  
     &lt;td&gt;&lt;input type="radio" name="sex" value="male" size="10"&gt;Male
  
     &lt;input type="radio" name="sex" value="Female" size="10"&gt;Female&lt;/td&gt;
  
     &lt;/tr&gt;
  
   &lt;tr&gt;
  
     &lt;td&gt;Stream&lt;/td&gt;
  
     &lt;td&gt;&lt;select name="Stream"&gt;
  
     &lt;option value="-1" selected&gt;Select..&lt;/option&gt;
  
     &lt;option value="ARTS"&gt;ARTS&lt;/option&gt;
  
     &lt;option value="COMMERCE"&gt;COMMERCE&lt;/option&gt;
  
     &lt;option value="SCIENCE"&gt;SCIENCE&lt;/option&gt;
  
     &lt;/select&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
   &lt;tr&gt;
  
     &lt;td&gt;Core-1&lt;/td&gt;
  
     &lt;td&gt;&lt;select name="Core-1"&gt;
  
     &lt;option value="-1" selected&gt;Select..&lt;/option&gt;
  
     &lt;option value="English"&gt;English&lt;/option&gt;
  
     &lt;/select&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
   &lt;tr&gt;
  
     &lt;td&gt;Core-2&lt;/td&gt;
  
     &lt;td&gt;&lt;select name="Core-2"&gt;
  
     &lt;option value="-1" selected&gt;Select..&lt;/option&gt;
  
     &lt;option value="Alternative English"&gt;Alternative English&lt;/option&gt;
  
     &lt;/select&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
   &lt;tr&gt;
  
   &lt;td&gt;Elective-1&lt;/td&gt;
  
     &lt;td&gt;&lt;select name="Elective-1"&gt;
  
     &lt;option value="-1" selected&gt;Select..&lt;/option&gt;
  
     &lt;option value="MIL (Hindi)"&gt;MIL (Hindi)&lt;/option&gt;
     &lt;option value="MIL (Bengali)"&gt;MIL (Bengali)&lt;/option&gt;
     &lt;option value="MIL (Nepali)"&gt;MIL (Nepali)&lt;/option&gt;
     &lt;option value="Political Science"&gt;Political Science&lt;/option&gt;
     &lt;option value="Education"&gt;Education&lt;/option&gt;
     &lt;option value="Economics"&gt;Economics&lt;/option&gt;
     &lt;option value="History"&gt;History&lt;/option&gt;
     &lt;option value="Geography"&gt;Geography&lt;/option&gt;
     &lt;option value="Sociology"&gt;Sociology&lt;/option&gt;
     &lt;option value="Logic &amp; Philosophy"&gt;Logic &amp; Philosophy&lt;/option&gt;
     &lt;option value="Advance Assamese"&gt;Advance Assamese&lt;/option&gt;
     &lt;option value="Advance Bengali"&gt;Advance Bengali&lt;/option&gt;
     &lt;option value="Physics"&gt;Physics&lt;/option&gt;
     &lt;option value="Chemistry"&gt;Chemistry&lt;/option&gt;
     &lt;option value="Biology"&gt;Biology&lt;/option&gt;
     &lt;option value="Mathematics"&gt;Mathematics&lt;/option&gt;
     &lt;option value="Computer Science &amp; Applications"&gt;Computer Science &amp; Applications&lt;/option&gt;
     &lt;option value="Accountancy"&gt;Accountancy&lt;/option&gt;
     &lt;option value="Business Studies"&gt;Business Studies&lt;/option&gt;
     &lt;option value="Banking"&gt;Banking&lt;/option&gt;
     &lt;option value="Statistics"&gt;Statistics&lt;/option&gt;
     &lt;/select&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
     &lt;tr&gt;
  
     &lt;td&gt;Elective-2&lt;/td&gt;
  
       &lt;td&gt;&lt;select name="Elective-2"&gt;
  
     &lt;option value="-1" selected&gt;Select..&lt;/option&gt;
  
     &lt;option value="MIL (Hindi)"&gt;MIL (Hindi)&lt;/option&gt;
     &lt;option value="MIL (Bengali)"&gt;MIL (Bengali)&lt;/option&gt;
     &lt;option value="MIL (Nepali)"&gt;MIL (Nepali)&lt;/option&gt;
     &lt;option value="Political Science"&gt;Political Science&lt;/option&gt;
     &lt;option value="Education"&gt;Education&lt;/option&gt;
     &lt;option value="Economics"&gt;Economics&lt;/option&gt;
     &lt;option value="History"&gt;History&lt;/option&gt;
     &lt;option value="Geography"&gt;Geography&lt;/option&gt;
     &lt;option value="Sociology"&gt;Sociology&lt;/option&gt;
     &lt;option value="Logic &amp; Philosophy"&gt;Logic &amp; Philosophy&lt;/option&gt;
     &lt;option value="Advance Assamese"&gt;Advance Assamese&lt;/option&gt;
     &lt;option value="Advance Bengali"&gt;Advance Bengali&lt;/option&gt;
     &lt;option value="Physics"&gt;Physics&lt;/option&gt;
     &lt;option value="Chemistry"&gt;Chemistry&lt;/option&gt;
     &lt;option value="Biology"&gt;Biology&lt;/option&gt;
     &lt;option value="Mathematics"&gt;Mathematics&lt;/option&gt;
     &lt;option value="Computer Science &amp; Applications"&gt;Computer Science &amp; Applications&lt;/option&gt;
     &lt;option value="Accountancy"&gt;Accountancy&lt;/option&gt;
     &lt;option value="Business Studies"&gt;Business Studies&lt;/option&gt;
     &lt;option value="Banking"&gt;Banking&lt;/option&gt;
     &lt;option value="Statistics"&gt;Statistics&lt;/option&gt;
     &lt;/select&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
     &lt;tr&gt;
  
     &lt;td&gt;Elective-3&lt;/td&gt;
  
       &lt;td&gt;&lt;select name="Elective-3"&gt;
  
     &lt;option value="-1" selected&gt;Select..&lt;/option&gt;
  
     &lt;option value="MIL (Hindi)"&gt;MIL (Hindi)&lt;/option&gt;
     &lt;option value="MIL (Bengali)"&gt;MIL (Bengali)&lt;/option&gt;
     &lt;option value="MIL (Nepali)"&gt;MIL (Nepali)&lt;/option&gt;
     &lt;option value="Political Science"&gt;Political Science&lt;/option&gt;
     &lt;option value="Education"&gt;Education&lt;/option&gt;
     &lt;option value="Economics"&gt;Economics&lt;/option&gt;
     &lt;option value="History"&gt;History&lt;/option&gt;
     &lt;option value="Geography"&gt;Geography&lt;/option&gt;
     &lt;option value="Sociology"&gt;Sociology&lt;/option&gt;
     &lt;option value="Logic &amp; Philosophy"&gt;Logic &amp; Philosophy&lt;/option&gt;
     &lt;option value="Advance Assamese"&gt;Advance Assamese&lt;/option&gt;
     &lt;option value="Advance Bengali"&gt;Advance Bengali&lt;/option&gt;
     &lt;option value="Physics"&gt;Physics&lt;/option&gt;
     &lt;option value="Chemistry"&gt;Chemistry&lt;/option&gt;
     &lt;option value="Biology"&gt;Biology&lt;/option&gt;
     &lt;option value="Mathematics"&gt;Mathematics&lt;/option&gt;
     &lt;option value="Computer Science &amp; Applications"&gt;Computer Science &amp; Applications&lt;/option&gt;
     &lt;option value="Accountancy"&gt;Accountancy&lt;/option&gt;
     &lt;option value="Business Studies"&gt;Business Studies&lt;/option&gt;
     &lt;option value="Banking"&gt;Banking&lt;/option&gt;
     &lt;option value="Statistics"&gt;Statistics&lt;/option&gt;
     &lt;/select&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
     &lt;tr&gt;
  
     &lt;td&gt;Elective-4&lt;/td&gt;
  
       &lt;td&gt;&lt;select name="Elective-4"&gt;
  
     &lt;option value="-1" selected&gt;Select..&lt;/option&gt;
  
     &lt;option value="MIL (Hindi)"&gt;MIL (Hindi)&lt;/option&gt;
     &lt;option value="MIL (Bengali)"&gt;MIL (Bengali)&lt;/option&gt;
     &lt;option value="MIL (Nepali)"&gt;MIL (Nepali)&lt;/option&gt;
     &lt;option value="Political Science"&gt;Political Science&lt;/option&gt;
     &lt;option value="Education"&gt;Education&lt;/option&gt;
     &lt;option value="Economics"&gt;Economics&lt;/option&gt;
     &lt;option value="History"&gt;History&lt;/option&gt;
     &lt;option value="Geography"&gt;Geography&lt;/option&gt;
     &lt;option value="Sociology"&gt;Sociology&lt;/option&gt;
     &lt;option value="Logic &amp; Philosophy"&gt;Logic &amp; Philosophy&lt;/option&gt;
     &lt;option value="Advance Assamese"&gt;Advance Assamese&lt;/option&gt;
     &lt;option value="Advance Bengali"&gt;Advance Bengali&lt;/option&gt;
     &lt;option value="Physics"&gt;Physics&lt;/option&gt;
     &lt;option value="Chemistry"&gt;Chemistry&lt;/option&gt;
     &lt;option value="Biology"&gt;Biology&lt;/option&gt;
     &lt;option value="Mathematics"&gt;Mathematics&lt;/option&gt;
     &lt;option value="Computer Science &amp; Applications"&gt;Computer Science &amp; Applications&lt;/option&gt;
     &lt;option value="Accountancy"&gt;Accountancy&lt;/option&gt;
     &lt;option value="Business Studies"&gt;Business Studies&lt;/option&gt;
     &lt;option value="Banking"&gt;Banking&lt;/option&gt;
     &lt;option value="Statistics"&gt;Statistics&lt;/option&gt;
     &lt;/select&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
     &lt;tr&gt;
  
     &lt;td&gt;Compulsory&lt;/td&gt;
  
       &lt;td&gt;&lt;select name="Compulsory"&gt;
  
       &lt;option value="-1" selected&gt;Select..&lt;/option&gt;
  
         &lt;option value="Environmental Education"&gt;Environmental Education&lt;/option&gt;
  
       &lt;/select&gt;&lt;/td&gt;
  
       &lt;/tr&gt;
  
  
  
     &lt;tr&gt;
  
       &lt;td&gt;Institute&lt;/td&gt;
  
       &lt;td&gt;&lt;select name="Institute"&gt;
  
       &lt;option value="-1" selected&gt;Select..&lt;/option&gt;
  
       &lt;option value="Institute-1"&gt;Institute-1&lt;/option&gt;
  
       &lt;option value="Institute-2"&gt;Institute-2&lt;/option&gt;
  
       &lt;option value="Institute-3"&gt;Institute-3&lt;/option&gt;
  
       &lt;/select&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
     &lt;tr&gt;
  
       &lt;td&gt;State&lt;/td&gt;
  
       &lt;td&gt;&lt;select Name="State"&gt;
  
       &lt;option value="-1" selected&gt;select..&lt;/option&gt;
  
       &lt;option value="New Delhi"&gt;NEW DELHI&lt;/option&gt;
  
       &lt;option value="Mumbai"&gt;MUMBAI&lt;/option&gt;
  
       &lt;option value="Goa"&gt;GOA&lt;/option&gt;
  
       &lt;option value="Bihar"&gt;BIHAR&lt;/option&gt;
  
       &lt;/select&gt;&lt;/td&gt;
  
       &lt;/tr&gt;
  
       &lt;tr&gt;
  
       &lt;td&gt;PinCode&lt;/td&gt;
  
       &lt;td&gt;&lt;input type="text" name="pincode" id="pincode" size="30"&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
       &lt;tr&gt;
  
       &lt;td&gt;EmailId&lt;/td&gt;
  
       &lt;td&gt;&lt;input type="text" name="emailid" id="emailid" size="30"&gt;&lt;/td&gt;
  
       &lt;/tr&gt;
  
     &lt;tr&gt;
  
       &lt;td&gt;DOB&lt;/td&gt;
  
       &lt;td&gt;&lt;input type="text" name="dob" id="dob" size="30"&gt;&lt;/td&gt;
  
       &lt;/tr&gt;
  
     &lt;tr&gt;
  
       &lt;td&gt;MobileNo&lt;/td&gt;
  
       &lt;td&gt;&lt;input type="text" name="mobileno" id="mobileno" size="30"&gt;&lt;/td&gt;
  
       &lt;/tr&gt;
  
       &lt;tr&gt;
  
       &lt;td&gt;&lt;input type="reset"&gt;&lt;/td&gt;
  
  
       &lt;td colspan="2"&gt;&lt;input type="submit" value="Submit Form" /&gt;&lt;/td&gt;
  
       &lt;/tr&gt;
  
       &lt;/table&gt;
  
       &lt;/form&gt;
  
       &lt;/body&gt;
  
       &lt;/html&gt;
  </code></pre>
  
  <p>Here is the output of the above html codes</p>
  
  <p><a href="https://i.stack.imgur.com/VFlQZ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VFlQZ.jpg" alt="enter image description here"></a></p>
  
  <p>I have created a .php as proces.php file according to Bill suggestion but content not writing but giving only ,,,,,,, here is my php script</p>
  
  <pre><code> &lt;?php
   $fieldA = $_POST["textnames"];
   $fieldB = $_POST["fathername"];
   $fieldC = $_POST["paddress"];
   $fieldD = $_POST["personaladdress"];
   $fieldE = $_POST["sex"];
   $fieldF = $_POST["Stream"];
   $fieldG = $_POST["Core-1"];
   $fieldH = $_POST["Core-2"];
   $fieldI = $_POST["Elective-1"];
   $fieldJ = $_POST["Elective-2"];
   $fieldK = $_POST["Elective-3"];
   $fieldL = $_POST["Elective-4"];
   $fieldM = $_POST["Compulsory"];
  
   $keys = array($fieldA,$fieldB,$fieldC,$fieldD,$fieldE,$fieldF,$fieldG,$fieldH,$fieldI,$fieldJ,$fieldK,$fieldL,$fieldM); //THIS IS WHERE YOU PUT THE FORM ELEMENTS ex: array('$fieldA','$fieldB',etc)
   $csv_line = array();
   foreach($keys as $key){
       array_push($csv_line,'' . $_GET[$key]);
   }
   $fname = 'data.csv'; //NAME OF THE FILE
   $csv_line = implode(',',$csv_line);
   if(!file_exists($fname)){$csv_line = "\r\n" . $csv_line;}
   $fcon = fopen($fname,'a');
   $fcontent = $csv_line;
   fwrite($fcon,$fcontent);
   fclose($fcon);
   ?&gt;
  </code></pre>
  
  <p>and edited my original html codes from <code>&lt;form action="#" name="StudentRegistration" onSubmit="return(validate());"&gt;</code> to  <code>&lt;form name="StudentRegistration" action="proces1.php" method="post"&gt;</code> so here is my new final html coding</p>
  
  <pre><code> &lt;html&gt;
  
     &lt;head&gt;
  
     &lt;script type="text/javascript" src="validate.js"&gt;&lt;/script&gt;
  
     &lt;/head&gt;
  
     &lt;body&gt;
  
     &lt;form name="StudentRegistration" action="proces.php" method="post"&gt;
  
  
   &lt;table cellpadding="2" width="20%" bgcolor="99FFFF" align="center"
  
     cellspacing="2"&gt;
  
   &lt;tr&gt;
  
     &lt;td colspan=2&gt;
  
     &lt;center&gt;&lt;font size=4&gt;&lt;b&gt;Student Registration Form&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;
  
     &lt;/td&gt;
  
     &lt;/tr&gt;
  
   &lt;tr&gt;
  
     &lt;td&gt;Name&lt;/td&gt;
  
     &lt;td&gt;&lt;input type=text name=textnames id="textname" size="30"&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
   &lt;tr&gt;
  
     &lt;td&gt;Father Name&lt;/td&gt;
  
     &lt;td&gt;&lt;input type="text" name="fathername" id="fathername"
  
     size="30"&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
     &lt;tr&gt;
  
     &lt;td&gt;Postal Address&lt;/td&gt;
  
     &lt;td&gt;&lt;input type="text" name="paddress" id="paddress" size="30"&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
   &lt;tr&gt;
  
     &lt;td&gt;Personal Address&lt;/td&gt;
  
     &lt;td&gt;&lt;input type="text" name="personaladdress"
  
     id="personaladdress" size="30"&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
   &lt;tr&gt;
  
     &lt;td&gt;Sex&lt;/td&gt;
  
     &lt;td&gt;&lt;input type="radio" name="sex" value="male" size="10"&gt;Male
  
     &lt;input type="radio" name="sex" value="Female" size="10"&gt;Female&lt;/td&gt;
  
     &lt;/tr&gt;
  
   &lt;tr&gt;
  
     &lt;td&gt;Stream&lt;/td&gt;
  
     &lt;td&gt;&lt;select name="Stream"&gt;
  
     &lt;option value="-1" selected&gt;Select..&lt;/option&gt;
  
     &lt;option value="ARTS"&gt;ARTS&lt;/option&gt;
  
     &lt;option value="COMMERCE"&gt;COMMERCE&lt;/option&gt;
  
     &lt;option value="SCIENCE"&gt;SCIENCE&lt;/option&gt;
  
     &lt;/select&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
   &lt;tr&gt;
  
     &lt;td&gt;Core-1&lt;/td&gt;
  
     &lt;td&gt;&lt;select name="Core-1"&gt;
  
     &lt;option value="-1" selected&gt;Select..&lt;/option&gt;
  
     &lt;option value="English"&gt;English&lt;/option&gt;
  
     &lt;/select&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
   &lt;tr&gt;
  
     &lt;td&gt;Core-2&lt;/td&gt;
  
     &lt;td&gt;&lt;select name="Core-2"&gt;
  
     &lt;option value="-1" selected&gt;Select..&lt;/option&gt;
  
     &lt;option value="Alternative English"&gt;Alternative English&lt;/option&gt;
  
     &lt;/select&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
   &lt;tr&gt;
  
   &lt;td&gt;Elective-1&lt;/td&gt;
  
     &lt;td&gt;&lt;select name="Elective-1"&gt;
  
     &lt;option value="-1" selected&gt;Select..&lt;/option&gt;
  
     &lt;option value="MIL (Hindi)"&gt;MIL (Hindi)&lt;/option&gt;
     &lt;option value="MIL (Bengali)"&gt;MIL (Bengali)&lt;/option&gt;
     &lt;option value="MIL (Nepali)"&gt;MIL (Nepali)&lt;/option&gt;
     &lt;option value="Political Science"&gt;Political Science&lt;/option&gt;
     &lt;option value="Education"&gt;Education&lt;/option&gt;
     &lt;option value="Economics"&gt;Economics&lt;/option&gt;
     &lt;option value="History"&gt;History&lt;/option&gt;
     &lt;option value="Geography"&gt;Geography&lt;/option&gt;
     &lt;option value="Sociology"&gt;Sociology&lt;/option&gt;
     &lt;option value="Logic &amp; Philosophy"&gt;Logic &amp; Philosophy&lt;/option&gt;
     &lt;option value="Advance Assamese"&gt;Advance Assamese&lt;/option&gt;
     &lt;option value="Advance Bengali"&gt;Advance Bengali&lt;/option&gt;
     &lt;option value="Physics"&gt;Physics&lt;/option&gt;
     &lt;option value="Chemistry"&gt;Chemistry&lt;/option&gt;
     &lt;option value="Biology"&gt;Biology&lt;/option&gt;
     &lt;option value="Mathematics"&gt;Mathematics&lt;/option&gt;
     &lt;option value="Computer Science &amp; Applications"&gt;Computer Science &amp; Applications&lt;/option&gt;
     &lt;option value="Accountancy"&gt;Accountancy&lt;/option&gt;
     &lt;option value="Business Studies"&gt;Business Studies&lt;/option&gt;
     &lt;option value="Banking"&gt;Banking&lt;/option&gt;
     &lt;option value="Statistics"&gt;Statistics&lt;/option&gt;
     &lt;/select&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
     &lt;tr&gt;
  
     &lt;td&gt;Elective-2&lt;/td&gt;
  
       &lt;td&gt;&lt;select name="Elective-2"&gt;
  
     &lt;option value="-1" selected&gt;Select..&lt;/option&gt;
  
     &lt;option value="MIL (Hindi)"&gt;MIL (Hindi)&lt;/option&gt;
     &lt;option value="MIL (Bengali)"&gt;MIL (Bengali)&lt;/option&gt;
     &lt;option value="MIL (Nepali)"&gt;MIL (Nepali)&lt;/option&gt;
     &lt;option value="Political Science"&gt;Political Science&lt;/option&gt;
     &lt;option value="Education"&gt;Education&lt;/option&gt;
     &lt;option value="Economics"&gt;Economics&lt;/option&gt;
     &lt;option value="History"&gt;History&lt;/option&gt;
     &lt;option value="Geography"&gt;Geography&lt;/option&gt;
     &lt;option value="Sociology"&gt;Sociology&lt;/option&gt;
     &lt;option value="Logic &amp; Philosophy"&gt;Logic &amp; Philosophy&lt;/option&gt;
     &lt;option value="Advance Assamese"&gt;Advance Assamese&lt;/option&gt;
     &lt;option value="Advance Bengali"&gt;Advance Bengali&lt;/option&gt;
     &lt;option value="Physics"&gt;Physics&lt;/option&gt;
     &lt;option value="Chemistry"&gt;Chemistry&lt;/option&gt;
     &lt;option value="Biology"&gt;Biology&lt;/option&gt;
     &lt;option value="Mathematics"&gt;Mathematics&lt;/option&gt;
     &lt;option value="Computer Science &amp; Applications"&gt;Computer Science &amp; Applications&lt;/option&gt;
     &lt;option value="Accountancy"&gt;Accountancy&lt;/option&gt;
     &lt;option value="Business Studies"&gt;Business Studies&lt;/option&gt;
     &lt;option value="Banking"&gt;Banking&lt;/option&gt;
     &lt;option value="Statistics"&gt;Statistics&lt;/option&gt;
     &lt;/select&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
     &lt;tr&gt;
  
     &lt;td&gt;Elective-3&lt;/td&gt;
  
       &lt;td&gt;&lt;select name="Elective-3"&gt;
  
     &lt;option value="-1" selected&gt;Select..&lt;/option&gt;
  
     &lt;option value="MIL (Hindi)"&gt;MIL (Hindi)&lt;/option&gt;
     &lt;option value="MIL (Bengali)"&gt;MIL (Bengali)&lt;/option&gt;
     &lt;option value="MIL (Nepali)"&gt;MIL (Nepali)&lt;/option&gt;
     &lt;option value="Political Science"&gt;Political Science&lt;/option&gt;
     &lt;option value="Education"&gt;Education&lt;/option&gt;
     &lt;option value="Economics"&gt;Economics&lt;/option&gt;
     &lt;option value="History"&gt;History&lt;/option&gt;
     &lt;option value="Geography"&gt;Geography&lt;/option&gt;
     &lt;option value="Sociology"&gt;Sociology&lt;/option&gt;
     &lt;option value="Logic &amp; Philosophy"&gt;Logic &amp; Philosophy&lt;/option&gt;
     &lt;option value="Advance Assamese"&gt;Advance Assamese&lt;/option&gt;
     &lt;option value="Advance Bengali"&gt;Advance Bengali&lt;/option&gt;
     &lt;option value="Physics"&gt;Physics&lt;/option&gt;
     &lt;option value="Chemistry"&gt;Chemistry&lt;/option&gt;
     &lt;option value="Biology"&gt;Biology&lt;/option&gt;
     &lt;option value="Mathematics"&gt;Mathematics&lt;/option&gt;
     &lt;option value="Computer Science &amp; Applications"&gt;Computer Science &amp; Applications&lt;/option&gt;
     &lt;option value="Accountancy"&gt;Accountancy&lt;/option&gt;
     &lt;option value="Business Studies"&gt;Business Studies&lt;/option&gt;
     &lt;option value="Banking"&gt;Banking&lt;/option&gt;
     &lt;option value="Statistics"&gt;Statistics&lt;/option&gt;
     &lt;/select&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
     &lt;tr&gt;
  
     &lt;td&gt;Elective-4&lt;/td&gt;
  
       &lt;td&gt;&lt;select name="Elective-4"&gt;
  
     &lt;option value="-1" selected&gt;Select..&lt;/option&gt;
  
     &lt;option value="MIL (Hindi)"&gt;MIL (Hindi)&lt;/option&gt;
     &lt;option value="MIL (Bengali)"&gt;MIL (Bengali)&lt;/option&gt;
     &lt;option value="MIL (Nepali)"&gt;MIL (Nepali)&lt;/option&gt;
     &lt;option value="Political Science"&gt;Political Science&lt;/option&gt;
     &lt;option value="Education"&gt;Education&lt;/option&gt;
     &lt;option value="Economics"&gt;Economics&lt;/option&gt;
     &lt;option value="History"&gt;History&lt;/option&gt;
     &lt;option value="Geography"&gt;Geography&lt;/option&gt;
     &lt;option value="Sociology"&gt;Sociology&lt;/option&gt;
     &lt;option value="Logic &amp; Philosophy"&gt;Logic &amp; Philosophy&lt;/option&gt;
     &lt;option value="Advance Assamese"&gt;Advance Assamese&lt;/option&gt;
     &lt;option value="Advance Bengali"&gt;Advance Bengali&lt;/option&gt;
     &lt;option value="Physics"&gt;Physics&lt;/option&gt;
     &lt;option value="Chemistry"&gt;Chemistry&lt;/option&gt;
     &lt;option value="Biology"&gt;Biology&lt;/option&gt;
     &lt;option value="Mathematics"&gt;Mathematics&lt;/option&gt;
     &lt;option value="Computer Science &amp; Applications"&gt;Computer Science &amp; Applications&lt;/option&gt;
     &lt;option value="Accountancy"&gt;Accountancy&lt;/option&gt;
     &lt;option value="Business Studies"&gt;Business Studies&lt;/option&gt;
     &lt;option value="Banking"&gt;Banking&lt;/option&gt;
     &lt;option value="Statistics"&gt;Statistics&lt;/option&gt;
     &lt;/select&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
     &lt;tr&gt;
  
     &lt;td&gt;Compulsory&lt;/td&gt;
  
       &lt;td&gt;&lt;select name="Compulsory"&gt;
  
       &lt;option value="-1" selected&gt;Select..&lt;/option&gt;
  
         &lt;option value="Environmental Education"&gt;Environmental Education&lt;/option&gt;
  
       &lt;/select&gt;&lt;/td&gt;
  
       &lt;/tr&gt;
  
  
  
     &lt;tr&gt;
  
       &lt;td&gt;Institute&lt;/td&gt;
  
       &lt;td&gt;&lt;select name="Institute"&gt;
  
       &lt;option value="-1" selected&gt;Select..&lt;/option&gt;
  
       &lt;option value="Institute-1"&gt;Institute-1&lt;/option&gt;
  
       &lt;option value="Institute-2"&gt;Institute-2&lt;/option&gt;
  
       &lt;option value="Institute-3"&gt;Institute-3&lt;/option&gt;
  
       &lt;/select&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
     &lt;tr&gt;
  
       &lt;td&gt;State&lt;/td&gt;
  
       &lt;td&gt;&lt;select Name="State"&gt;
  
       &lt;option value="-1" selected&gt;select..&lt;/option&gt;
  
       &lt;option value="New Delhi"&gt;NEW DELHI&lt;/option&gt;
  
       &lt;option value="Mumbai"&gt;MUMBAI&lt;/option&gt;
  
       &lt;option value="Goa"&gt;GOA&lt;/option&gt;
  
       &lt;option value="Bihar"&gt;BIHAR&lt;/option&gt;
  
       &lt;/select&gt;&lt;/td&gt;
  
       &lt;/tr&gt;
  
       &lt;tr&gt;
  
       &lt;td&gt;PinCode&lt;/td&gt;
  
       &lt;td&gt;&lt;input type="text" name="pincode" id="pincode" size="30"&gt;&lt;/td&gt;
  
     &lt;/tr&gt;
  
       &lt;tr&gt;
  
       &lt;td&gt;EmailId&lt;/td&gt;
  
       &lt;td&gt;&lt;input type="text" name="emailid" id="emailid" size="30"&gt;&lt;/td&gt;
  
       &lt;/tr&gt;
  
     &lt;tr&gt;
  
       &lt;td&gt;DOB&lt;/td&gt;
  
       &lt;td&gt;&lt;input type="text" name="dob" id="dob" size="30"&gt;&lt;/td&gt;
  
       &lt;/tr&gt;
  
     &lt;tr&gt;
  
       &lt;td&gt;MobileNo&lt;/td&gt;
  
       &lt;td&gt;&lt;input type="text" name="mobileno" id="mobileno" size="30"&gt;&lt;/td&gt;
  
       &lt;/tr&gt;
  
       &lt;tr&gt;
  
       &lt;td&gt;&lt;input type="reset"&gt;&lt;/td&gt;
  
  
       &lt;td colspan="2"&gt;&lt;input type="submit" value="Submit Form" /&gt;&lt;/td&gt;
  
       &lt;/tr&gt;
  
       &lt;/table&gt;
  
       &lt;/form&gt;
  
       &lt;/body&gt;
  
       &lt;/html&gt;
  </code></pre>