Jump to content

jmantra

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jmantra's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi all, I am trying to use an expression to validate an e-mail address, but if i enter a proper email addy (ie jmantra@domain.com) it tells me invalid email: <?php // check e-mail address // display success or failure message if (!preg_match("/^([a-zA-Z0-9])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)+/", $_POST['email'])) { die("Invalid e-mail address"); } echo "Valid e-mail address, processing..."; $file = fopen("/var/lists/flagstore/flagadd","a+"); fwrite($file, $_POST["name"] . ' '); fclose($file); ?> any help would be greatly appreciated. Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.