How to enable A-Z CHARS space in register page ?

Started on the old forum in December 2010 · view the original in the archive · old links redirect here

2 replies · 338 views · started 15 years ago · 1 min read

3 participants
BANDIT007 Developer · 112 posts #1

Hi, i want to know how to enable a-z , A-Z characters ,space , while registering in wapdesire. Kindly help me

PRACTICE MAKES PERFECTKEEP TRYING UNTIL YOU ACHIEVE SOMETHING IN LIFE. IF YOU LIKE WHAT AM SHARING PLEASE DO SAY THANKS!!! THANK YOU LOL

kei_ki7 Senior · 431 posts #2

$string = preg_replace('/[^a-zA-Z0-9 ]/', '', $string);

Did I help you? You can help me too Your donations will help me finance my studies.

ori Lead · 512 posts #3

that wont work the way u want as itll take out any non a-z chars u want to use a function like this

function UserChars($text) { if (!preg_match('/[^a-z]/i',$text)) return true; else return false; }

if(!userchars($_GET['username'])){ echo "you can only use A-Z chars"; }else{

}

something like that will work

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close