Input text box

Results 1 to 2 of 2

Thread: Input text box

  1. #1
    Kiran Shiveshwar Guest

    Default Input text box

    Hi,<BR><BR>Following are 2 ASP files. TEXT1.ASP & TEST2.ASP<BR>In test1.asp there is a form with 2 input text boxes and one hidden input box.The name of hidden and the one og the text box (UserName) are same.<BR><BR>When I click on submit for this form the data is send to tes1.asp.When I output the request received fom test1 I get an additional comma for TEXTBOX UserName<BR><BR>Is there any way I can prevent the addtional comma without removing the hiiden input field.<BR><BR><BR>TEST1.ASP<BR>---------------<BR>&#060;HTML&#062;<BR>&#060;HEAD&#062;<BR><BR>&# 060;/HEAD&#062;<BR>&#060;BODY&#062;<BR><BR> &#060;FORM METHOD="POST" ACTION="test2.asp"&#062;<BR> &#060;INPUT TYPE="TEXT" NAME="UserName" &#062;<BR> &#060;INPUT TYPE="HIDDEN" NAME="UserName" VALUE=""&#062;<BR> <BR>&#060;INPUT TYPE="TEXT" NAME="PASSWORD" VALUE=""&#062;<BR> &#060;INPUT TYPE="SUBMIT" VALUE="LOGIN"&#062;<BR>&#060;/FORM&#062;<BR><BR><BR>&#060;/BODY&#062;<BR>&#060;/HTML&#062;<BR><BR><BR>-----------------------<BR>Test2.asp<BR>-----------------------<BR><BR>&#060;HTML&#062;<BR>&#060;HEAD&#062;<BR>&# 060;META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"&#062;<BR>&#060;/HEAD&#062;<BR>&#060;BODY&#062;<BR><BR><BR>Name=&#0 60;%Response.Write(Request.Form("UserName"))%&#062 ;<BR>Password=&#060;%Response.Write(Request.Form(" password"))%&#062;<BR><BR>&#060;/BODY&#062;<BR>&#060;/HTML&#062;<BR>

  2. #2
    ActiveALLI Guest

    Default RE: Input text box

    Alltough i don&#039t see the point in the hidden input box <BR>and you should also try &#060;Input Type="Password"&#062; for the password field<BR>But if you insist on doing this like this then you can use this code do chop one character of the string (ie. the comma)<BR><BR>name = &#060;%=left(Request.Form("Username"), len(Request.Form("Username")) - 1)%&#062;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •