Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form field

Status
Not open for further replies.

aarellano

MIS
Oct 22, 2007
168
US
Hello,

I have a form field where users enter a letter and then numbers.
The problem that I am having is that about 90% of the users are use to enter just the number without the letter int he beginning. So I was wondering if I could add the letter before the order gets submited I was trying something like this
Code:
<input type="text" name="ORD" value="" size="32"<%if rs.in("ord").value between 0,9 then response.write(S(rs.in'ord'))%>>
 
Have you considered using the Asc() function to fetch the ASCII value of the first letter of the user's input? The digits have a value of >= 48 and <= 57

More on the Asc function:
Also the ASCII codes can be found easily on google.

Here is one with an easy name but a lot of Adware spam:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top