in

AlertPay Developers Community

Not a valid alertpay email format

Last post 01-09-2009 12:04 PM by AlertPay_Phoun. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-09-2009 10:43 AM

    Not a valid alertpay email format

    Script is in PERL

     I finally have the IPN postback working but then the customer is brought to

    a sign up form to gain access to members area. This is what I get when I hit submit.(Not a valid alertpay email format).

    Here is the section the error comes from:

    if ($alertpay =~ /^[\w\-\.]+\@[\w\-]+\.[\w\-\.]+\w$/) {}
     else {
      print $q->header;
      print("Not a valid alertpay email format!");
      exit;
      }

    Any ideas would be appreciated.

  • 01-09-2009 12:04 PM In reply to

    Re: Not a valid alertpay email format

    You can try the following:

     

     if ($email_address =~ /^(\w¦\-¦\_¦\.)+\@((\w¦\-¦\_)+\.)+[a-zA-Z]{2,}$/) {
        print "$email_address is valid";
    }
    else {
        print "$email_address is invalid";
    }


    This code was found here: http://www.webmasterworld.com/forum13/251.htm

     

    This is not exactly the role of AlertPay's Technical Support as each website is unique. As there are many different programming languages, we're not experts in all of them.

    We'll do our best to help you when possible, but please understand that we may not be able to completely solve your problem all the time. You may have to outsource the coding to someone who has more expertise.

    ***This is a Developers Forum, any other questions should be addressed to our Customer Support department or you can find the answers in our FAQ page.***
Page 1 of 1 (2 items)

  AlertPay - Verified by Visa AlertPay - secure credit card and checking services BBBOnline Reliability Program