Login | |
|
 |
Help in asp verification - 5/26/2005 10:41:48 PM
|
|
 |
|
| |
rhem
Posts: 1
Score: 0
Joined: 5/26/2005
From: Philippines
Status: offline
|
i'm having a difficulty in my asp codes because im just new in this asp, kindly help me... <% <!-- #INCLUDE FILE=C"\Program Files\Common Files\System\ado\adovbs.inc" --> dim cn,rs set cn = Server.CreateObject("ADODB.Connection") cn.open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\inetpub\wwwroot\portal\database\portal.mdb;" dim strsql strsql = "Insert into tblreg values('" &request.form("lname") & "', '" & request.form("fname") & "', '" & request.form("mi") & "', '" & request.form("age") & "', '" & request.form("bdate") & "', '" & request.form("address") & "' , '" & request.form("course") & "', '" & request.form("year") & "', '" & request.form("section") & "', '" & request.form ("studno") & "', '" & request.form ("username") & "','" & request.form("password")& "')" cn.execute strsql %> <Script language = "JavaScript"> <!-- function VerifyData() { if (register.form1.password.value != register.form1.Verify.value) { alert("Your password do not match - please reenter"); return false; } else return true; } --> </Script> // the first script was running but when it comes to javascript i dont know where i should place it so it can verify my data... i need your suggestion this will be a big help for me thanks...
_____________________________
rhem
|
|
| |
|
|
|
| |
|
|
 |
|
 |
|
|