**//For every character on the string.**
**for(index = 0; index < string.length; index++) {
****char = string.substr(index, 1);************************
****
****//Is it a valid character?
****if(valid_chars.indexOf(char) == -1) {
******//If not, is it already on the list of invalid characters?
******if(invalid_chars.indexOf(char) == -1) {
********//If it's not, add it.
********if(invalid_chars == '')
**********invalid_chars += char;
********else
**********invalid_chars += ', ' + char;
******}
****}
**}
************
**//If the string does not contain invalid characters, the function will return true.
**//If it does, it will either return false or a list of the invalid characters used
**//in the string, depending on the value of the second parameter.
**if(return_invalid_chars == true && invalid_chars != '') {
****last_comma = invalid_chars.lastIndexOf(',');
****if(last_comma != -1)
******invalid_chars = invalid_chars.substr(0, $last_comma) +
******' and ' + invalid_chars.substr(last_comma + 1, invalid_chars.length);
****return(invalid_chars);
****}
**else
****return(invalid_chars == '');
}
function Validate_Email_Address(email_address) {
**//Assumes that valid email addresses consist of user_name@domain.tld
**at = email_address.indexOf('@');
**dot = email_address.indexOf('.');
Whoa That code is hard to translate XD
but im sure going to try it !
thanks!
10-21-2006, 12:43 PM
dbroncos78087
Oh wow, i thought somebody had made a tutorial for how to validate your account with like screenshots of how to open up your email and stuff like that.