Questions tagged [flawed-concept]

5 questions
17
votes
2 answers

Why does Angular provide ng-maxlength when there is a standard maxlength?

HTML provides a standard maxlength attribute since version 4.01. Angular provides a ng-maxlength directive. The difference is that the standard approach doesn't allow entering more than max, while Angular's approach just generates a validation…
Den
  • 1,827
  • 3
  • 25
  • 46
9
votes
5 answers

PHP:How to send the original password to the user when he clicks forgot password which is encrypted by using md5?

I am using md5 to encrypt the passwords in my project. When user clicks on forgot password and submits his email,I have to send His password to him. But the password is encrypted using md5.Generating new password should not do.Because In this…
kishore
  • 1,017
  • 3
  • 12
  • 21
3
votes
1 answer

Javascript string to int array

var result ="1fg"; for(i =0; i < result.length; i++){ var chr = result.charAt(i); var hexval = chr.charCodeAt(chr) document.write(hexval + " "); } This gives NaN 102 103. Probably because it's treating the "1" as a integer or something like…
Timo Willemsen
  • 8,717
  • 9
  • 51
  • 82
0
votes
9 answers

truly unique random number generate by php?

I'm have build an up php script to host large number of images upload by user, what is the best way to generate random numbers to image filenames so that in future there would be no filename conflict? Be it like Imageshack. Thanks.
proyb2
  • 31
  • 1
  • 3
0
votes
1 answer

Flaw in Mysql query for making a histogram, probably in parameter definition

I feel a bit annoyed in asking this, but would someone be so kind to remove the flaw in this code? My MySQL-server does not understand this query. It is part of a larger php-mysql-javascript where the user defines how big one histogrambar needs to…