|
-
Jan 10th, 2001, 05:56 AM
#1
Thread Starter
Hyperactive Member
do
If Not InStr(Request.Form("Email"), "@") > 0 Then
intError = 1
End if
If Request.Form("name") = "" Or IsNull(Request.Form("name")) Then
intError = 1
End if
Loop while(intError = 1)
Hows the best way to loop in a section only to get a condition on form validation
-
Jan 10th, 2001, 01:11 PM
#2
Frenzied Member
validate before submitting
<form name="blabla" onSubmit="validate();">
validate(){
var ok=true;
if(document.blabla.email.indexOf("@")>0){
ok=false;
}
if(document.blabla.name==""){
ok=false;
}
if(ok==true){
document.blabla.submit();
}else{
alert('Please.........');
}
End if
}
-
Jan 11th, 2001, 05:31 AM
#3
Thread Starter
Hyperactive Member
cheers
I have another problem,, do you know how to send mail in ASP with SIMPLEMAPI. icannot use SMTP because the server is using EXCHANGE MAIL SERVER.
Cheers
-
Jan 11th, 2001, 08:17 AM
#4
Frenzied Member
i don't know in asp but you can in javascript,
it open the clent mail service(outlook,...)
something like:
<a href="mailto:[email protected]">my email</a>
-
Jan 11th, 2001, 08:57 AM
#5
Thread Starter
Hyperactive Member
No
Thats a link to the shell of the installed application, i dont wnat to call the shell i want to use the mail server of EXCHANGE or simplemapi
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
|