p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

asp_forms thread: How to Force Uppercase Letters


Message #1 by thewikidone@h... on Tue, 12 Feb 2002 23:45:48
Hi,



How would I force all input from the user in the following code to be 

translated to UpperCase?  Where can I place the UCase command to make all 

input from the User display in Uppercase?



Thanks,

Dan





<td valign=top><font size=3 color=#000080 face=arial>Dept :</font></td>

      <td valign=top><font size=3 color=#000080 face=arial><%=rs

("Department")%></font></td>

    

    <tr>

      <td valign=top><font size=3 color=#000080 

face=arial>Phone :</font></td>

      <td valign=top><font size=3 color=#000080 face=arial><%=rs

("PhoneNumber")%></font></td>

    

    <tr>

      <td valign=top><font size=3 color=#000080 

face=arial>Title :</font></td>

      <td valign=top><font size=3 color=#000080 face=arial><%=rs("Title")%

></font></td>    



    <tr>

      <td valign=top><font size=3 color=#000080 

face=arial>Cell :</font></td>

      <td valign=top><font size=3 color=#000080 face=arial><%=rs("Cell")%

></font></td>

    

    <tr>

      <td valign=top><font size=3 color=#000080 

face=arial>Pager :</font></td>

      <td valign=top><font size=3 color=#000080 face=arial><%=rs("Pager")%

></font></td>

     

    <tr>

      <td valign=top><font size=3 color=#000080 

face=arial>Location :</font></td>

      <td valign=top><font size=3 color=#000080 face=arial><%=rs

("Location")%></font></td>

         

    <tr>

      <td valign=top><font size=3 color=#000080 face=arial>

            </font></td>

    

      <td colspan=2 valign=top>

        <br>

	   

	</td>

 
Message #2 by "Drew, Ron" <RDrew@B...> on Tue, 12 Feb 2002 21:13:20 -0500
Input from user or input from database...If user

<form  blah blah blah>

<input blah blah blah name=3D"field1">Field1

<input blah blah submit button>

</form>

On next asp......

<%

dim strfield1

strfield1 =3D request.form("field1")

if strfield1 <> ""

  UCASE(strfield1)

end if

%>



-----Original Message-----

From: thewikidone@h... [mailto:thewikidone@h...]

Sent: Tuesday, February 12, 2002 6:46 PM

To: ASP Forms

Subject: [asp_forms] How to Force Uppercase Letters





Hi,



How would I force all input from the user in the following code to be

translated to UpperCase?  Where can I place the UCase command to make

all

input from the User display in Uppercase?



Thanks,

Dan





<td valign=3Dtop><font size=3D3 color=3D#000080 face=3Darial>Dept 

:</font></td>

      <td valign=3Dtop><font size=3D3 color=3D#000080 

face=3Darial><%=3Drs

("Department")%></font></td>

   

    <tr>

      <td valign=3Dtop><font size=3D3 color=3D#000080

face=3Darial>Phone :</font></td>

      <td valign=3Dtop><font size=3D3 color=3D#000080 

face=3Darial><%=3Drs

("PhoneNumber")%></font></td>

   

    <tr>

      <td valign=3Dtop><font size=3D3 color=3D#000080

face=3Darial>Title :</font></td>

      <td valign=3Dtop><font size=3D3 color=3D#000080

face=3Darial><%=3Drs("Title")%

></font></td>   



    <tr>

      <td valign=3Dtop><font size=3D3 color=3D#000080

face=3Darial>Cell :</font></td>

      <td valign=3Dtop><font size=3D3 color=3D#000080

face=3Darial><%=3Drs("Cell")%

></font></td>

   

    <tr>

      <td valign=3Dtop><font size=3D3 color=3D#000080

face=3Darial>Pager :</font></td>

      <td valign=3Dtop><font size=3D3 color=3D#000080

face=3Darial><%=3Drs("Pager")%

></font></td>

    

    <tr>

      <td valign=3Dtop><font size=3D3 color=3D#000080

face=3Darial>Location :</font></td>

      <td valign=3Dtop><font size=3D3 color=3D#000080 

face=3Darial><%=3Drs

("Location")%></font></td>

        

    <tr>

      <td valign=3Dtop><font size=3D3 color=3D#000080 face=3Darial>

            </font></td>

   

      <td colspan=3D2 valign=3Dtop>

        <br>

	  

	</td>






$subst('Email.Unsub').


  Return to Index