| | |
Change PAssword
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
Hello friends,
I'm in a serious problem....... I have a change password application for registered users......I've applied javascript to check wheather fields are blanks or not but incase if someone press spacebar in new password and retype new password fields then it accept it . Now I want to block if someone try to press spacebar in new password cases.........please help to solve this error.......
I'm in a serious problem....... I have a change password application for registered users......I've applied javascript to check wheather fields are blanks or not but incase if someone press spacebar in new password and retype new password fields then it accept it . Now I want to block if someone try to press spacebar in new password cases.........please help to solve this error.......
html Syntax (Toggle Plain Text)
<form method='post'> Username: <input type='text' value='' name='user'><br> Password: <input type='text' value='' name='password'><br> </form>
php Syntax (Toggle Plain Text)
<? if ($_POST['password']!==' ' && strlen($_POST['password'])>0 && isset($_POST['password'])) { //activate account } ?>
Or you could just set a minimum password length of something like 8 letters/numbers/characters which is done like the following:
php Syntax (Toggle Plain Text)
<? $minimum_length=8; if (strlen($_POST['password'])>=$minimum_length && isset($_POST['password'])) { //activate account } ?>
Try not to bump 10 year old threads as it can be really annoying.
http://syntax.cwarn23.net/
My favourite PC. - MacGyver Fan
http://syntax.cwarn23.net/
Smilies: ^_* +_+ v_v -_- *~*` My favourite PC. - MacGyver Fan
![]() |
Similar Threads
- how to create a password and change the password? (C++)
- Change Password In A Shell Script (Shell Scripting)
Other Threads in the PHP Forum
- Previous Thread: Checkbox array
- Next Thread: quick question need quick answer
| Thread Tools | Search this Thread |
.htaccess ajax apache api array beginner binary broken buttons cakephp checkbox class cms code cron curl database date directory display dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail mediawiki menu mlm mod_rewrite multiple mysql number oop paypal pdf php phpincludeissue phpmyadmin problem query radio random recursion regex remote script search server sessions sms soap source sp space speed sql subdomain syntax system table tag tutorial update upload url validation validator variable vbulletin video web webdesign websphere white xml youtube






