<!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><link rel="stylesheet" type="text/css" href="../common/styles.css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<br />
<b class="topic">Initial Questions</b>
<br /><br />
<form action="initialquizformtab.php" method="post">
<table><tr><td class="label">Client Organization Name:</td><td><select id="client_Name" name="client_Name" class="select">
<?php
require("../common/database.php");
$result = mysql_query( "SELECT * FROM client");
while($row=mysql_fetch_array($result)){
?>
<option value="<?php echo $row['Name']?>"><?php echo $row['Name']?></option>
<?php
}
?>
</select></td></tr></table>
<hr width="500px;" align="left" />
<table>
<?php
//require("../common/database.php");
$result = mysql_query( "SELECT * FROM initial_quiz");
$i=0;
while($row=mysql_fetch_array($result)){
$i++;
?>
<tr valign="top"><td><?php echo $i.". "?></td>
<td class="label" width="500px" align="justify"><?php echo $row['Question']?></td>
</tr><tr><td></td>
<?php $textarea="textarea".$i;
$id=id.$i;
?>
<!-- creating text boxes -->
<td class="label"><textarea cols="40" class="textboxarea" id="<?php echo $textarea;?>" name="<?php echo $textarea;?>" ></textarea >
<input type="hidden" id="<?php echo $id?>" name="<?php echo $id?>" value="<?php echo $row['Id'];?>">
</td>
</tr><tr><td></td></tr>
<?php
}
?>
<input type="hidden" name="no_of_quiz" id="no_of_quiz" value="<?php echo $i;?>">
<tr><td></td><td><input type="submit" class="button" value=" Ok " id="add" name="add"/></td></tr>
</table>
</form>
</body>
</html>