Thursday, 18 September 2014

php paper and result

<body bgcolor="#FF9900">
<h1 align="center">Online Examination System</h1>
<table width="900" align="center">
<form action="result.php">
<tr>
<td>Rollno</td>
<td>
<input type="text" name="Rollno" size="40">
</td>
<td>Name</td>
<td>
<input type="text" name="Name" size="40">
</td>
</tr>

<tr>
<td>Teacher</td>
<td>
<select name="teacher">
      <option>Select-Teacher</option>
      <option value="Sir Majid">Sir Majid</option>
      <option value="Sir Tahir">Sir Tahir</option>
      <option value="Sir Ali">Sir Ali</option>
      <option value="Sir Atif">Sir Atif</option>
      <option value="Sir Javed">Sir Javed</option>
</select>
</td>
<td>Timing</td>
<td>
<select name="timing">
      <option>Select-Paper-Timing</option>
      <option value="09:00 am">09:00 am</option>
      <option value="10:00 am">10:00 am</option>
      <option value="11:00 am">11:00 am</option>
      <option value="12:00 pm">12:00 pm</option>
      <option value="01:00 pm">01:00 pm</option>
</select>
</td>
</tr>

<tr>
<td>Select-Paper</td>
<td>
<select name="paper">
      <option>Select-Paper</option>
      <option value="Wed designing">Web designing</option>
      <option value="Graphic designing">Graphic designing</option>
      <option value="Hardware">Hardware</option>
      <option value="IELTS">IELTS</option>
      <option value="JAVA">JAVA</option>
</select>
</td>
<td>Upload Photo</td>
<td><input type="file" name="photo">
</td>
</table>
<br>
<br>
<br>
<br>
<table border="1" align="center" width="1000">
<tr>
<td>
<h1 align="left">Q1.What Is HTML???????</h1>
<input type="radio" name="q1" value="10">Hyper text markup languages
<br>
<br>
<input type="radio" name="q1" value="0">Hyper text markup languages
<br>
<br>
<input type="radio" name="q1" value="0">Hyper text markup languages
<br>
<br>
<input type="radio" name="q1" value="0">Hyper text markup languages

</td>
</tr>

<tr>
<td>
<h1 align="left">Q2.What Is HTML???????</h1>
<input type="radio" name="q2" value="0">Hyper text markup languages
<br>
<br>
<input type="radio" name="q2" value="10">Hyper text markup languages
<br>
<br>
<input type="radio" name="q2" value="0">Hyper text markup languages
<br>
<br>
<input type="radio" name="q2" value="0">Hyper text markup languages

</td>
</tr>

<tr>
<td>
<h1 align="left">Q3.What Is HTML???????</h1>
<input type="radio" name="q3" value="0">Hyper text markup languages
<br>
<br>
<input type="radio" name="q3" value="0">Hyper text markup languages
<br>
<br>
<input type="radio" name="q3" value="10">Hyper text markup languages
<br>
<br>
<input type="radio" name="q3" value="0">Hyper text markup languages

</td>
</tr>

<tr>
<td>
<h1 align="left">Q4.What Is HTML???????</h1>
<input type="radio" name="q4" value="0">Hyper text markup languages
<br>
<br>
<input type="radio" name="q4" value="0">Hyper text markup languages
<br>
<br>
<input type="radio" name="q4" value="0">Hyper text markup languages
<br>
<br>
<input type="radio" name="q4" value="10">Hyper text markup languages

</td>
</tr>

<tr>
<td>
<h1 align="left">Q5.What Is HTML???????</h1>
<input type="radio" name="q5" value="10">Hyper text markup languages
<br>
<br>
<input type="radio" name="q5" value="0">Hyper text markup languages
<br>
<br>
<input type="radio" name="q5" value="0">Hyper text markup languages
<br>
<br>
<input type="radio" name="q5" value="0">Hyper text markup languages

</td>
</tr>


<tr>
<td align="center">
<input type="Submit" value="Paper Complete">
</td>
</tr>
</fo
</table>





















<?php
$name=$_POST["name"];

$q1=$_POST["q1"];
$q2=$_POST["q2"];
$q3=$_POST["q3"];
$q4=$_POST["q4"];
$q5=$_POST["q5"];

echo "$name"


echo "<h1> Total marks" . ($q1 + $q2 + $q3 + $q4 + $q5). "</h1>" ;
?>

No comments:

Post a Comment