RSSAll Entries Tagged With: "email"

PHP Validate Email Address

When a user submits their email address in a form, you want to be sure it is a real email address. We will use the function preg_match() to see if it matches our regex for emails. <?php // Validate.php function check_email($email){ $email = trim($email); if(preg_match("/^[a-z0-9&'\.\-_\+]+@[a-z0-9\-]+\.([a-z0-9\-]+\.)*+[a-z]{2}/is", $email)){ // the email address matches our regex, now make [...]

Using PHP with Email Activation

Let’s say you have a website with registration. However, you want to have all registered users verify their email address to their account before being able to use all the functions of your site. To do this we can use PHP and simply create an activation code for each user when they register. Let’s make [...]

The tutorials and scripts found on bgallz.org are for training purposes only, use to your discretion.