start(); ?> Query: ".$_POST['query_text'] ; $curform->displayhidden("subject",$_POST['subject']); $curform->displayhidden("query_text",$_POST['query_text']); if($_GET['actn']=='query') { $q=mysql_query("select * from user where email='".$_GET['adr']."' "); if(mysql_num_rows($q)==1) { $rw=mysql_fetch_object($q); print $rw->user_id; print $_POST['subject']; print ""; print ""; print ""; unset($_SESSION['goto']); /* if($_POST['subject']!='' && $_POST['query_text']!='') { $q_id=generate_valid_id(get_next_id('q_id'),10); $qry="insert into userquery (q_id,user_id,subject,query_text) values ('$q_id','$user_id','".$_POST['subject']."','".$_POST['query_text']."')"; mysql_query($qry) or die(mysql_error()); } */ exit; } else { print ""; } } elseif($_GET['actn']=='true') { if(mysql_num_rows(mysql_query("select * from user where email='".$_POST['email']."' "))==0) { // NEW USER REGISTERATION if($_SESSION['goto']=='query') $flg="Y"; else $flg="N"; $recordingdate=date("Y-m-d"); //$browser_type=$HTTP_USER_AGENT; //$ip=$REMOTE_ADDR; //$utime=date("YmdHis"); $utime=date("HdsYim"); $dob=$_POST['byear']."-".$_POST['bmonth']."-".$_POST['bday']; print $dob."
"; $user_id=generate_valid_id(get_next_id('user_id'),10); $ins="insert into `user`(user_id,email,pass,fname,lname,address,city,state,country,pincode,phone,datetime,utime,frlht_id,gender,prof_id,dob,reg_for,flg) values('$user_id','".$_POST['email']."','".$_POST['pass']."', '".addslashes($_POST['fname'])."','".addslashes($_POST['lname'])."', '".addslashes($_POST['address'])."','".$_POST['city']."', '".$_POST['state']."','".$_POST['country']."', '".$_POST['pincode']."','".$_POST['phone']."', '$recordingdate','$utime', '".$_POST['loginid']."', '".$_POST['gender']."','".$_POST['prof_id']."','$dob', '".$_SESSION['goto']."','$flg')"; mysql_query($ins) or die(mysql_error()); if($_POST['subject']!='' && $_POST['query_text']!='') { $q_id=generate_valid_id(get_next_id('q_id'),10); $qry="insert into userquery (q_id,user_id,subject,query_text) values ('$q_id','$user_id','".$_POST['subject']."','".$_POST['query_text']."')"; mysql_query($qry) or die(mysql_error()); } if($_SESSION['goto']!='') { if($_SESSION['goto']!='query') { $mailbody="Dear ".$_POST['fname']." ".$_POST['lname'].", \nThanks for Your Registration with FRLHT. \n Please Click on the link below to confirm you registration.\n"; $mailbody=$mailbody." Confirm "; print "
Thanks for your Registration. Mail has been sent to you.
Please Click confirm link in your mail to activate your account."; print "


"; $mailbody=$mailbody."


If the above link does not work,
  1. Your Authentication code is : \"$utime\"
  2. Visit us at \"http://localhost/userlogin/auth_user.php?goto=".$_SESSION['goto']."\" and paste your authentication code and login id for confirmation.
"; print $mailbody; print "

"; } elseif($_SESSION['goto']=='envis') { unset($_SESSION['goto']); @header("location:../envis_temp/"); } elseif($_SESSION['goto']=='query') { unset($_SESSION['goto']); @header("location:../envis_temp/"); } elseif($_SESSION['goto']=='faq') { unset($_SESSION['goto']); @header("location:../faq/view_faq.php"); } //@mail($bemail,'Registration Confirmation with FRLHT',$mailbody,'From:admin@frlht.org.in'); exit; } else print "no go to"; } else { print ""; } } if($_SESSION['goto']=='query') { print "
Thank you for visiting us..
BACK
"; print ""; print ""; print ""; $curform->displayhidden("chklogin",""); print "
If you have registered with FRLHT, please provide your FRLHT ID i.e. your Email
FRLHT ID (Email address) : "; $curform->displaytext('frlht_id','',50,60,1); print "
"; print " "; print "

"; $msg="If not, Please fill in the following details for our reference"; } else $msg="New User Registration "; print ""; print ""; //FNAME print ""; //REGISTER print ""; $curform->displayhidden("mail",$_POST['email']); print"
$msg
Name"; $curform->displaytext('fname','',50,100,1); //LNAME //print "Last Name"; //$curform->displaytext('lname','',30,100,1); //ADDRESS print "
Address"; $curform->displaytextarea('address','',64,3,1,1); //CITY print "
City"; $curform->displaytext('city','',30,100,1); //PINCODE print "Pincode"; $curform->displaytext('pincode','',30,6,0); //STATE print "
State"; $curform->displaytext('state','',30,100,1); //COUNTRY print "Countries"; $curform->displayselect('country',$cou,'','1','','--select--','0'); //GENDER $gender=array(""=>"--Select--","Female"=>"Female","Male"=>"Male"); print "
Gender"; $curform->displayselect('gender',$gender,'','0','','','',''); //PROFESSION $prof_list=get_list_data("profession","prof_id",array('prof_name'),'','SELECT prof_name, prof_id FROM profession ORDER BY prof_name'); print "Profession"; $curform->displayselect('prof_id',$prof_list,'','','','--SELECT--','0'); //PHONE print "
Phone"; $curform->displaytext('phone','',30,100,1); //D O B print "Date of Birth "; $curform->displayselect('bday',$mydays,$cat_id,'0','','','',''); print "-"; $curform->displayselect('bmonth',$Months,$cat_id,'0','','','',''); print "-"; $curform->displayselect('byear',$myyear,$cat_id,'0','','','',''); //EMAIL print "
Email"; $curform->displaytext('email','',30,100,1,'onBlur=emailid()'); //FRLHT ID print "FRLHT Id"; $curform->displaytext('loginid','',30,100,1,readonly); //PASSWORD print "
Password"; $curform->displayPassword('pass','',30,100,1); print "Confirm
password
"; $curform->displayPassword('cpass','',30,100,1); print "
"; $curform->displaysubmit("Register","submit"); print "
"; $curform->end(); print ""; ?>