stripping extra spaces from form fields
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 35607
interpreted = N
texte = Is there a simple way to strip extra spaces from form fields beforethey are appended to a database?I have a form that collects information from users.The user creates their own record in the database via this form.The user can then log back in at any time by entering their name anda password.I've encountered several instances where the user could not log backin.After further investigation I found that they had entered an extraspacecharacter either before or after their name or password.The login was then disallowed if the name or password did not matchexactly.If the preceeding or trailing space is provided login is successful.What is my best course of action to prevent this from occuring?Is there a command or context that I can use to remedy this?Thanks in advance for any insight...-- Marc ThompsonMultimedia/Web DeveloperKUED/Media Solutions/University of Utah801.585.9264mthompson@media.utah.edu-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Is there a simple way to strip extra spaces from form fields beforethey are appended to a database?I have a form that collects information from users.The user creates their own record in the database via this form.The user can then log back in at any time by entering their name anda password.I've encountered several instances where the user could not log backin.After further investigation I found that they had entered an extraspacecharacter either before or after their name or password.The login was then disallowed if the name or password did not matchexactly.If the preceeding or trailing space is provided login is successful.What is my best course of action to prevent this from occuring?Is there a command or context that I can use to remedy this?Thanks in advance for any insight...-- Marc ThompsonMultimedia/Web DeveloperKUED/Media Solutions/University of Utah801.585.9264mthompson@media.utah.edu-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Marc Thompson
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
WebCat, switching from NT to OSX (2003)
2.0Beta Command Ref (can't find this instruction) (1997)
Emailer Q (2002)
Comments Please ... Omnis Studio v WC (2001)
Plugin or CGI or both (1997)
error: Too many nested [xxx] contexts (1997)
[WriteFile] problems (1997)
Q: for those who use Cookies for sessions? (2004)
RE: Emailer Set Up (1997)
Help name our technology! (1997)
Help!!!! Purchases not going through! FIXED! (1997)
Design Help Needed (1998)
[BoldWords] WebCat.acgib15Mac (1997)
ShowNext (1997)
Cart Number sequence (1997)
adding up in a db (1997)
Text data with spaces in them... (1997)
Re2: frames & carts (1997)
merchant accts. (1997)
Document Contains No Data! (1997)