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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

check the space

Status
Not open for further replies.

orn

Programmer
Aug 12, 2004
1
TH
hi guys....
how to check if the user enter any space. for example when the user enter 'abc ' with the space at the end i want the program to be able to check the space before enter it to the db.

thanks in advance
 
Orn,

If you want to get rid of the spaces at the end, why don't you just trim the field before you enter it into the database.

i.e. trim(Request.Form("myField"))

This will get rid of all leading and trailing white spaces. Mise Le Meas,

Mighty :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top