REGISTER
|
Search Tycoon Talk
|
Freelancer.com
|
Members
Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.
Register Here
Forum Rules
PHP Forum
You are currently viewing our PHP Forum as a guest. Please
register
to participate.
Login
Remember Me?
Login via Freelancer.com
Tycoon Talk
>
Web Development and Programming Support
>
PHP Forum
>
php block unwanted symbols
Link Back
Thread Tools
Search this Thread
php block unwanted symbols
02-17-2009, 06:31 PM
#
1
(
permalink
)
php block unwanted symbols
Skeddles
Extreme Talker
Posts: 176
Trades:
0
Talkupation:
How do I make sure that a username/password only contains numbers letters and underscores?
$username
$password
Register
now for full access!
02-17-2009, 06:52 PM
#
2
(
permalink
)
Re: php block unwanted symbols
Insensus
Ultra Talker
Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades:
0
Talkupation:
if(preg_match('/^[a-zA-Z0-9_]*$/',$username)){
// Followed the rules
}else{
// Didn't do so
}
__________________
<?php
(
$helpfull
>
0
)
?
$talkupation
++ :
''
;
?>
02-17-2009, 07:13 PM
#
3
(
permalink
)
Re: php block unwanted symbols
Skeddles
Extreme Talker
Posts: 176
Trades:
0
Talkupation:
Quote:
Originally Posted by
Insensus
if(preg_match('/^[a-zA-Z0-9_]*$/',$username)){
// Followed the rules
}else{
// Didn't do so
}
thank you ^^
« Reply to
php block unwanted symbols
Previous Thread
|
Next Thread
Tycoon Talk
>
Web Development and Programming Support
>
PHP Forum
>
php block unwanted symbols
Thread Tools
Search this Thread
Show Printable Version
Email this Page
Search this Thread
:
Advanced Search
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
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
Off
Forum Rules
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Tweet this thread
Page generated in
0.12125
seconds with
12
queries