|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Validating textfields in a form
Hello
I have entered two textfields on a form in my Page which get/change data on my database. Is there any way that i can validate that the entries in both textfiels are equal before updating the entries in the database...Basically i am creating a page that will change the users password if he confirms it on the second text fiels. i want if the values on the textfields are not equal a proper message to be displayed... Please help me.. thank you.... |
|
#2
|
|||
|
|||
|
Something like this, right?
Code:
If Not Request.Form("tbPassword") = Request.Form("tbConfirmPassword") Then
Response.Write("Passwords do not match!")
Else
' Do database stuff!
End If
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > Validating textfields in a form |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|