problem with the submit bottom

hi,

i have very strange problem.

i have simple form with input and submit (without reset)

i expect that the user will enter they code and submit and then they will be pass to the page they want,

users use to use the "enter" key as submit, but somewhy its not working in this form(in other form i have its working)

when i press the enter key is just clear the input and does nothing.

any idea

thanks.

mikalush



Answer this question

problem with the submit bottom

  • James Minns

    Mikalush, can you provide us with a code sample

    It would help us to better troubleshoot what you are doing.

    Thanks!



  • gcaplan

    Here is the Code of the Form
    <form id="frm" method="post" action="/thisPage.asp">
         <div class="frmElm" style=" display:inline;" >
                <div class="frmElmTxt" style="margin-right:11px;">
                        Personal Code*
                 </div>
                 <input id="sbsCode" name="sbsCode" style="width:130px; height:17px; margin-left:15px; margin-right:15px;" ></input>
                  <input id="sbmt" type="submit" value="Login" name="sbmt" style="width: 56px;"></input>
           </div>
           <div class="frmElmTxt" style="margin-right:11px; margin-top:11px; margin-bottom:11px;">
                  <a href="Help_remindCode.asp">don't remember your code </a>  
           </div>
    </form>

    in the begining of this page, i'm checking the SbsCode, and if it's
    OK I redirect him to another Page:
    <%    
    if len(Request.Form("sbmt")) then
          if Request.Form("sbsCode")<>"" then 
                 stValidMsg=isValidSbsCode(Trim(Request.Form("sbsCode")))
                 if stValidMsg="OK" then
                         Response.Redirect("chooseAction.asp")
                 else
                        stRslt="Not a VAlid Code"
                 end if
           else
                  stRslt="Please Enter your Code"
           end if
     end if
    %>


  • GameDog

    Hello mikalush - I moved your question here where you will more likely get a quicker response. Thanks!



  • problem with the submit bottom