AJAX
[ class tree: AJAX ] [ index: AJAX ] [ all elements ]

File: login.class.php

Source Location: /HTML_AJAX-0.2.4/examples/login/php/login.class.php

Classes:

login
Login class used in the "login form" example Please note: Constructors and private methods marked with _ are never exported in proxies to JavaScript

Page Details:


ERR_EMAIL_EMPTY [line 150]

ERR_EMAIL_EMPTY = 'You forgot to enter an e-mail address'

[ Top ]



ERR_EMAIL_INVALID [line 151]

ERR_EMAIL_INVALID = 'The e-mail address you entered is invalid. Please enter a valid e-mail address.'

[ Top ]



ERR_PASSWORD_EMPTY [line 148]

ERR_PASSWORD_EMPTY = 'You forgot to enter a password, please try again'

[ Top ]



ERR_PASSWORD_INVALID [line 149]

ERR_PASSWORD_INVALID = 'The password you entered is invalid. Please try "gabriel" (without quotes)'

[ Top ]



ERR_USERNAME_EMPTY [line 146]

ERR_USERNAME_EMPTY = 'You forgot to enter a username, please try again'

[ Top ]



ERR_USERNAME_INVALID [line 147]

ERR_USERNAME_INVALID = 'The username you entered is invalid. Please try "peter" (without quotes)'

[ Top ]



checkEmail [line 24]

array(checked, checkEmail( $email $email, [$blnDebug $blnDebug = false])

Email check function

A typical use of the validating mode is to use: [code] if (checkEmail($email_address)) { } else { print 'Your email address is not valid'; } [/code]

A typical use of the debugging mode is to use: [code] $return_msgs = checkEmail($email_address, true); foreach($return_msgs[1] as $debug_msg) { print htmlspecialchars($debug_msg).'
'; } print $return_msgs[0] ? 'Email address seems to be valid' : 'Email address does not seem to be valid'; [/code]

  • Return: valid, messages)


Parameters

$email   $email   Email to be checked
$blnDebug   $blnDebug   Debug mode enabled
[ Top ]



Documentation generated on Mon, 11 Mar 2019 14:11:19 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.