
PK 
<?php
session_start();
require_once 'common/common.php';
require_once 'common/secure.php';
include("connexion.php");
include "head.php";
?>
<form action="subclntadded.php" method="get" onsubmit="return checkform(this);">
<table cellspacing="3" align="center" width="100%" border="4" cellpadding="3">
<tr>
<td><strong>Clients Name</strong>:</td>
<td><select name="name"><?php
$sql="SELECT headid, headname FROM head WHERE parhead!='0'";
$result=mysql_query($sql) or die('error in fetch');
while($row=mysql_fetch_array($result))
{
$iid="{$row['headid']}";
echo"<option value=$iid>{$row['headname']}</option>";
}
?></select>
</td>
</tr>
<tr>
<td valign="top"><strong>Company Name</strong>:</td>
<td><input type="text" name="subname" size="33"></td>
</tr>
<tr>
<td>
<strong>Address</strong>:
</td>
<td>
<textarea rows="4" cols="25" name="subaddress"></textarea>
</td>
</tr>
<tr>
<td valign="top">
<strong>Contact Person</strong>:</td>
<td>
<input type="text" name="subperson" size="33">
</td>
</tr>
<tr>
<td valign="top"><strong>Phone</strong>:</td><td><input type="text" name="subphone" size="33"></td>
</tr>
<tr>
<td align="center" colspan="2"><br><center><input type="submit" value="Add Sub Client" class="amo-submit"></center></td>
</tr>
</table>
</form>
<?php
include "foot.php";
?>


PK 99