Results 1 to 5 of 5

Thread: loop

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446
    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

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    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
    }

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446

    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

  4. #4
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    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>

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446

    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
  •  



Click Here to Expand Forum to Full Width