Viewing file: microaddmember.php (4.62 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include('session.php'); ?> <!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>
</head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Account Create</title>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script> <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <style type="text/css"> a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } body { background-color: #CCC; } </style> <script language="JavaScript" type="text/javascript"> <!--
function Toggle(obj){ var val=obj.value; if (!obj.m){ obj.m=''; } if (!obj.m.match(val)){ obj.m+=','+val+','; } var hide=obj.m.split(','); for (var zxc0=0;zxc0<hide.length;zxc0++){ if (document.getElementById(hide[zxc0])){ document.getElementById(hide[zxc0]).style.display='none'; } } var show=val.split(','); for (var zxc1=0;zxc1<show.length;zxc1++){ if (document.getElementById(show[zxc1])){ document.getElementById(show[zxc1]).style.display=''; } } }
//--> </script> </head> <center> <body> <form id="form1" name="form1" method="post" action="microdatabasemember.php" enctype="multipart/form-data"> <table width="953" border="0" bgcolor="#FFFFFF"> <tr> <td width="113"><?php include('header.php'); ?></td> <td colspan="2"></td ></tr> <tr> <td colspan="3"> <table width="945" border="0"> <tr> <td colspan="3" bgcolor="#CCCCCC"><?php include('menubar.php'); ?></td> </tr> <tr> <td width="210" bgcolor="#6699CC">Welcome <?php echo $user ?></td> <td width="335" bgcolor="#6699CC"><a href="logout.php">Logout</a></td> <td width="386" bgcolor="#6699CC"><?php echo "Today is " . date("d/m/y") . "<br>";?></td> </tr> </table> </td> </tr> <tr> <td colspan="3" bgcolor="#66CCFF" align="left"> <table width="944" border="0"> <tr> <td width="127" bgcolor="#66CCFF" align="left">GROUP NAME</td> <td colspan="4" bgcolor="#66CCFF" align="left"> <?php // Create connection $con=mysqli_connect("localhost","sarkmicr_user","rb!sar838","sarkmicr_data");
// Check connection if (mysqli_connect_errno())
// Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } else { echo "We are connected."; }
$result = mysqli_query($con,"SELECT ID, groupname FROM micfinance ");
?> <select name="q" id="q" > <? while($row = mysqli_fetch_array($result)) { echo "<option value='" . $row['groupname'] . "'>" . $row['groupname'] . "</option>"; } ?> </td> <td width="182" bgcolor="#66CCFF" align="left"><label for="textfield"></label> <label for="textfield14"></label></td> </tr> <tr> <td bgcolor="#66CCFF" align="left">PARTY NAME</td> <td colspan="5" bgcolor="#66CCFF" align="left"><input name="pname" type="text" id="pname" tabindex="1" size="20" maxlength="20"/></td> </tr> <tr> <td bgcolor="#66CCFF" align="left">ADDRESS</td> <td colspan="5" bgcolor="#66CCFF" align="left"><input name="addres" type="text" id="address" size="60" maxlength="80" /></td> </tr> <tr> <td bgcolor="#66CCFF" align="left">MOBILE</td> <td colspan="5" bgcolor="#66CCFF" align="left"><input name="mobile" type="text" id="mobile" size="60" maxlength="80" /></td> </tr> <tr> <td bgcolor="#66CCFF" align="left">ID</td> <td colspan="5" bgcolor="#66CCFF" align="left"><input name="id" type="text" id="id" size="60" maxlength="80" /></td> </tr> <tr> <td height="38" bgcolor="#66CCFF" align="left">Join Date</td> <td colspan="2" bgcolor="#66CCFF" align="left"><input name="jdate " type="text" id="jdate" size="60" maxlength="80" /></td> </tr> <tr> <td width="105" bgcolor="#66CCFF" align="left">Branch Name</td> <td colspan="2" bgcolor="#66CCFF" align="left"><input name="branchname" type="text" required id="branchname" readonly="readonly" value="<?php echo $user ?>" tabindex="21" /></td> </tr> <tr> <td colspan="6" align="center" bgcolor="#D72427"><input type="submit" name="ADD" id="ADD" value="ADD" tabindex="22" /></td> </tr> </table> </td> </tr> </table> </form>
</body></center> </html>
|