Date:  11/14/2001 12:03:51 AM Msg ID:  000117
From:  Oleg Goncharuk Thread:  000103
Subject:  Re: HTML textbox problem
Before output of HTML code into HTML control  INPUT or TEXTAREA value (in order to edit code in browser) I often replace angle brackets like this:
strtran(cMyString,"<","&lt;")
strtran(cMyString,">","&gt;")
Also it will be good idea to replace character " on &quot; if you going to insert string in input field surrounded by quotes.

When form will submit such code back to FoxWeb, all characters (<>and ") will  appear again by itself. It is standard behavior of browsers (Netscape and Explorer)

/Oleg



Sent by Alan Harris-Reid on 11/08/2001 06:28:51 PM:
I am creating a Foxweb (although it could be any ASP-type) script file, and when putting a textbox on the form I wish to call a function within <% %> tags which will set the name, value and maxlength properties at runtime according to the table field the textbox relates to.  The HTML code is as follows:

<input type="text" size=8 <%=MyFunction() %>>

When I view the page in Internet Explorer 5.0 (SP2) (to check my design progress) it shows the textbox followed by an extra > character to the right of the textbox.  I guess this is an IE ASP-interpretation problem, because the code works correctly when the script file is executed, but it would be nice to see it correctly in IE when I am designing the page.
Is there any way around this problem?  Would there be any difference if I upgraded IE?

Another question - is there anyway in HTML code that I can control the user input of a textbox to be upper-case only?  Or can I only validate the data once I submit the form?

Any help would be appreciated.

Alan Harris-Reid