Old 4th August 2006, 07:37   #1
is99
Member
 
Join Date: Mar 2006
Posts: 69
Custom Page Question

Hi guys

I'm using Custom Page to get from a user its username and password.

My problem is that I want to make sure the user enters only characters and numbers in the user field. I mean I don't want the user to write @ in his username. Is there some easy way to do it?

Thanks.
is99 is offline   Reply With Quote
Old 4th August 2006, 11:45   #2
engine
Junior Member
 
engine's Avatar
 
Join Date: Feb 2006
Location: China
Posts: 31
I think you can check the input in the Leave Function of your Custom Page.
If the string contains invalid charactors, then use the Abort Instruction to hold on this Page and give user prompt to reset.

Hope this helps.

Last edited by engine; 4th August 2006 at 12:11.
engine is offline   Reply With Quote
Old 4th August 2006, 12:02   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
You can use one of these:
http://nsis.sourceforge.net/StrCSpn%...for_characters

-Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump