Location: PHPKode > projects > Decider > decider/Initial_Questionaire/initialquizformtab.php
<?php

	require('../Login/authen.php');

?>
<html>
<head>
<title>Decider - Information Gathering Assistant</title>
<link rel="stylesheet" type="text/css" href="../ajaxtabs/ajaxtabs.css" />
<link rel="stylesheet" type="text/css" href="../common/styles.css" />
<script type="text/javascript" src="../ajaxtabs/ajaxtabs.js">

</script>

</head>
<body>
<div id='maindiv' align="center">

<table width="800px">
	<tr>
		<td align="left" valign="top"><?php require('../common/top.html'); ?></td>
	</tr></table>

<table background="../common/tableback.png" width="800px" height="800px">
<tr align="right"><td></td><td class="label" align="right">
	<?php 
	
echo $_SESSION['username'];
?></td></tr>
	<tr>
	  	<td width="200px" align="left" valign="top"><?php require('../common/menu.html'); ?></td>
		<td width="600px" align="left" valign="top"><?php require('../Initial_Questionaire/initialquizform.php'); ?></td>
	</tr>
</table>

</div>
</body>
</html>
<?php 
//to delete data from client table
if(isset($_POST['add'])){

	for($i=1;$i<$_POST['no_of_quiz']+1;$i++){
	$textarea=textarea.$i;
    $id=id.$i;
	//echo $textarea;
	$q_string="INSERT INTO initial_answers VALUES('$_POST[client_Name]','$_POST[$id]','$_POST[$textarea]')";
	
 
	if (!mysql_query($q_string,$link))
	  {
	  die('Error: ' . mysql_error());
	  }
	 }
	echo "1 record added";
	
	mysql_close($link);
	
}

?>
Return current item: Decider