|
-
Jul 9th, 2001, 06:29 PM
#1
Thread Starter
Lively Member
if Request.Form("field") > 0...
Or what are you looking for?
-
Jul 9th, 2001, 06:42 PM
#2
Frenzied Member
You'll want to do this in client side javascript...
The onBlur event will fire when the control loses focus and is one place to put it. Also in the onSubmit event of the form is another good place to validate fields.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Jul 9th, 2001, 06:57 PM
#3
If you are using ASP, then you can easily validate it on the server. Just do:
Code:
If Len(Request.Form("yourfield")) > 0 Then
'valid
End If
-
Jul 9th, 2001, 06:57 PM
#4
Fanatic Member
Interested in the onSubmit event. Not sure how to do it, have no clue about javascript..Would you be willing to help?
Thanks
-
Jul 10th, 2001, 12:04 PM
#5
Frenzied Member
Code:
<SCRIPT language=javascript>
function myform_onSubmit()
{
if(myform.mytext.value < 0)
{
window.alert("Enter a value > 0");
return false;
}
return true;
}
</SCRIPT>
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|