| | |
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.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
![]() |
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 |
ajax apache api array beginner beneath binary broadband broken button cakephp checkbox class cms code countingeverycharactersfromastring crack cron curl database date decode display dynamic 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 match md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf php problem protocol query radio random recursion regex remote script search server session sessions sms smtp soap source space sql strip_tags survey syntax system table tutorial undefined update upload url validator variable video virus votedown web window.onbeforeunload=closeme; xml youtube






