| | |
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. - Oopy Doopy Do 2U2!
http://syntax.cwarn23.net/
Smilies: ^_* +_+ v_v -_- *~*` My favourite PC. - Oopy Doopy Do 2U2!
![]() |
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
Views: 498 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary bounce broken cakephp checkbox class cms code computing cron curl database date delete directory display domain download dynamic echo email error file files folder form forms function functions google href htaccess html image include indentedsubcategory insert integration ip java javascript joomla limit link load login loop mail menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote return script search select server sessions sms soap source space speed sql structure syntax system table tutorial update upload url validation validator variable video web xml youtube






