Viewing file: clientregistration.php (5.45 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include('session.php'); ?> <?php include('laserno.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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Student Admission Form</title> </head> <center> <body>
<form action="addt_registration.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#CCCCCC"> <tr> <td width="823" colspan="4" align="center"><?php include('header.php'); ?></td> </tr> <tr> <td colspan="4" bgcolor="#FFFF00"><?php include('menubar.php'); ?></td> </tr> <tr> <td width="210" bgcolor="#6699CC">Welcome: Mr.<?php echo $user ?></td> <td width="335" bgcolor="#6699CC"><a href="logout.php">Logout</a></td> <td width="454" bgcolor="#6699CC"><?php echo "Today is " . date("d/m/y") . "<br>";?></td> </tr> <tr> <td colspan="4" bgcolor="#FFFF00"></td> </tr> <tr> <td colspan="4" align="left" valign="top"> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td width="144" bgcolor="#33FF33">Lesar No</td> <td width="306"><input type="text" name="lesorno" id="lesorno" readonly="readonly" required value="<?php echo $laserno ?>"/></td> <td width="135" bgcolor="#33FF33">Roll No</td> <td width="335"><label for="roll_no"></label> <input type="text" name="roll_no" id="roll_no" /></td> </tr> <tr> <td bgcolor="#33FF33">Subject </td> <td> <?php // Create connection $con=mysqli_connect("localhost","mitm_user","mitmpass838","mitm_ailwssor_database");
// 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, course FROM allcourses ");
?> <select name="subject1" id="subject1" > <? while($row = mysqli_fetch_array($result)) { echo "<option value='" . $row['course'] . "'>" . $row['course'] . "</option>"; } ?> </select> </td> <td bgcolor="#33FF33">Admission Date</td> <td><input type="text" name="date" id="date" value=<?php echo date("d/m/Y") ?> /></td> </tr> <tr> <td bgcolor="#33FF33">Date of Birth</td> <td><input type="date" name="dob" id="dob" /></td> <td bgcolor="#33FF33">BATCH</td> <td><input name="year" type="text" id="year" size="40" maxlength="50" required/></td> </tr> <tr> <td bgcolor="#33FF33">Student Name</td> <td><input name="studentname" type="text" id="studentname" size="40" maxlength="50" required/></td> <td bgcolor="#33FF33">Father's Name</td> <td><input name="fathername" type="text" id="fathername" size="40" maxlength="50" required /></td> </tr> <tr> <td bgcolor="#33FF33">Mother's Name</td> <td><input name="mothername" type="text" id="mothername" accesskey="10" size="40" maxlength="50" required/></td> <td bgcolor="#33FF33">Branch Name</td> <td><input type="text" name="branchname" id="branchname" value=<?php echo $user ?> readonly/></td> </tr> <tr> <td bgcolor="#33FF33">Session/Year</td> <td><input type="text" name="year" id="year" value=<?php echo date("Y") ?> /></td> <td bgcolor="#33FF33">Mobile No</td> <td><input type="text" name="mobileno" id="mobileno" required="required" /></td> </tr> <tr> <td bgcolor="#33FF33">Account No</td> <td><input name="accountno" type="text" id="accountno" /></td> <td bgcolor="#33FF33"> </td> <td> </td> </tr> <tr> <td bgcolor="#33FF33">Address</td> <td bgcolor="#CCCCCC"><textarea name="Address" cols="40" id="Address" required ></textarea></td> <td bgcolor="#33FF33">Gender</td> <td><select name="gender" id="gender" > <option>MALE</option> <option>FEMALE</option> </select></td> </tr> <tr> <td bgcolor="#33FF33">Course Fees</td> <td><input type="text" name="totalfees" id="totalfees" required="required"/></td> <td bgcolor="#33FF33">Deposit Fees</td> <td><input type="text" name="depositfees" id="depositfees" required="required" value='0' /></td> </tr> <tr> <td colspan="4"><table width="935" border="0" cellspacing="2" cellpadding="2"> <tr> <td width="144" bgcolor="#33FF33">Photo Upload</td> <td width="765"><input type="file" name="upload" id="upload" accept="image/jpeg" /> <input type="hidden" name="MAX_FILE_SIZE" value="999999999" /> </td> </tr> </table></td> </tr> <tr> <td> </td> <td><input type="submit" name="addrecod" id="addrecod" value="Submit" accesskey="52" /></td> <td> </td> <td> </td> </tr> </table> <p> </p></td> </tr> <tr> <td colspan="4"><?php include('footer.php'); ?></td> </tr> </table></form> </body></center> </html>
|