%@ LANGUAGE="VBSCRIPT" %> <% Response.Buffer = "True"%> <% Dim CommandText,ConnecObj, ConnecObj2,M_Date Dim M_id,M_password,M_password2,M_question,M_answer,M_DOB_m,M_DOB_d,M_DOB_y,M_email,M_zip,M_gender,M_job,M_ind M_id = Request.Form("id") M_password = Request.Form("password") M_password2 = Request.Form("password2") M_question = Request.Form("question") M_answer = Request.Form("answer") M_DOB_m = Request.Form("DOB_m") M_DOB_d = Request.Form("DOB_d") M_DOB_y = Request.Form("DOB_y") M_email = Request.Form("email") M_zip = Request.Form("zip") M_gender = Request.Form("gender") M_job = Request.Form("job") M_ind = Request.Form("ind") M_bkto = Request.Form("bkto") '********************************************************************************************** 'Input Validation Dim flag_Rdirect,err_str err_str="" Set Connecobj2 = Server.CreateObject("ADODB.Connection") Connecobj2.Open "orientaljewels","plunia","PL765$" CommandText="SELECT * FROM userTB WHERE user_id='" & TRIM(M_id) & "'" Set RS_user = ConnecObj2.Execute (CommandText,RecordsAffected,adCmdText) %> <% If (TRIM(M_id)="" OR LEN(TRIM(M_id))<5 ) then err_str = err_str + "
|
R e g i s t e r @ O r i e n t a l j o b s . c o m |
|
<%
If (flag_RDirect="true") then
Response.write " You have made few mistakes like : (Please correct) " Response.write "
Go Back and correct registration form and resubmit it. <% Else M_date = DateSerial(INT(M_DOB_y),INT(M_DOB_m),INT(M_DOB_d)) CommandText = "INSERT INTO userTB (user_id,password,question_no,answer,DOB,email,zip,gender,occupation,industry) VALUES ('" & M_id & "','" & M_password & "','" & M_question & "','" & M_answer & "','" & M_Date & "','" & M_email & "','" & M_zip & "','" & M_gender & "','" & M_job & "','" & M_ind & "')" ConnecObj2.Execute CommandText,RecordsAffected,adCmdText Session("IGUser") = Trim(M_id) If (Trim(M_bkto)<>"") then Response.ReDirect M_bkto End if %>CongratulationsNow you are registered with OrientalJobs ID: <%=M_id%>, Please go back and avail the OrientalJobs services using this ID.<% End if %> |