Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it
    Registrato dal
    Jul 2007
    Messaggi
    63

    metodo ucase , non funziona

    salve ho questo form per inviare dei dati :
    codice:
    <form name="Login"  method="get"  action="paginastudenti.asp">
    <table  align="center" border="3"  bgcolor="#2A00AA" bordercolor="#A6641C"> <tr><td>
      <table width="450" border="0" align="center" cellspacing="0" cellpadding="0" bgcolor="#CCCCCC">
        <tr> 
          <td align="right" height="47" valign="bottom" width="94">COGNOME: </td>
          <td height="47" valign="bottom" width="172"> 
            <input type="text"name="cognome">
          </td>
        </tr>
        <tr>
          <td align="right" width="94"><br>NOME: </td>
          <td width="172"> 
            <br><input type="text" name="nome">
          </td>
        </tr>
        <tr>
          <td align="right" width="94"><br>PASSWORD: </td>
          <td width="172"> 
            <br><input  type="password" name="password">
          </td>
        </tr>    
        <tr> 
          <td align="right" height="44" width="94">&nbsp;</td>
          <td height="44" width="172"> 
            <input type="submit" name="Submit" value="Enter">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            <input type="reset" name="Submit2" value="Reset">
          </td>
        </tr>
      </table>
      </td></tr>
      </table>
    </form>
    dove ricevo in questo modo

    codice:
    'verifico il cognome
    dim strcognome
    strcognome = Trim( Lcase ( ucase(Request.QueryString("cognome"))))
    'strcognome = Cstr( UCASE(request.Form("cognome")))
    response.Write strcognome
     if len(strcognome) = 0 then 
     %>
    <!--  <META HTTP-EQUIV="REFRESH" CONTENT="0; URL=allerta.htm"> -->
     <%
    else
    end if
    'verifico la nome
    dim strnome
    strnome = Trim( Lcase( ucase(Request.QueryString("nome"))))
    'strnome = Cstr( UCASE(request.Form("nome")))
    response.Write strnome
     if len(strnome) = 0 then 
     %>
    <!--  <META HTTP-EQUIV="REFRESH" CONTENT="0; URL=allerta.htm"> -->
     <%
    else
    end if
    'verifico il password
    dim strpsw
    strpsw = Trim( Lcase( ucase(Request.QueryString("password"))))
    'strpsw = Cstr( UCASE(request.Form("password"))) 
    response.Write strpsw
     if len(strpsw) = 0 then 
     %>
    <!--  <META HTTP-EQUIV="REFRESH" CONTENT="0; URL=allerta.htm"> -->
     <%
    else
    end if
    il dati vengono passati, il problema è che mi servono maiuscoli e anche con Ucase rimangono in minuscolo, ho provato ad usare sia " request.form " che " Request.QueryString ", ma non cambia nulla.
    Grazie per l'aiuto
    Roberrto

  2. #2
    Moderatore di JavaScript L'avatar di br1
    Registrato dal
    Jul 1999
    Messaggi
    19,998
    Se il method=get non puoi ricevere i dati con request.querystring, inoltre nella sintassi attuale che utilizzi la funzione lcase() viene eseguita dopo ucase() e quindi e' ovvi che ti ritrovi minuscole....

    elimina la lcase()
    Il guaio per i poveri computers e' che sono gli uomini a comandarli.

    Attenzione ai titoli delle discussioni: (ri)leggete il regolamento
    Consultate la discussione in rilievo: script / discussioni utili
    Usate la funzione di Ricerca del Forum

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.