Source Code PHP
Source Code PHP
php
error_reporting(1);
include('../dbconfig.php');
extract($_POST);
if(isset($save))
{
if(strlen($mob)<10 || strlen($mob)>10)
{
$err="<font color='red'>Mobile number must be 10 digit</font>";
}
else
{
//for auto genrate Password
/*
$x=rand(1,99);
$p= md5($x);
$pass=substr($p,1,6);
*/
//for user_alias
$temp=substr($name,0,4);
$temp1=substr($mob,0,4);
$user_name=$temp.$temp1;
?>
<option>Sem-I</option>
<option>Sem-II</option>
<option>Sem-III</option>
<option>Sem-IV</option>
<option>Sem-V</option>
<option>Sem-VI</option>
<option>Sem-VII</option>
<option>Sem-VIII</option>
</select>
</div>
</div>
</div>