Jump to content

justin7410

Members
  • Posts

    114
  • Joined

  • Last visited

Community Answers

  1. justin7410's post in SyntaxError: Unexpected token < error due to a parsererror condition was marked as the answer   
    So the issue that was bringing this message was my regular expression variable was missing a character so the function of match was not working.
    $reg_exp = "/^([a-z0-9._-]+@[a-z0-9._-]+\.[a-z]{2,4}$/ "; if(!preg_match($reg_exp, $email)){ $errorMsg .= "<p>A valid email is required</p>"; } so that fixed this issue.
     
     
    What you bring up is a whole other issue within itself, that i realized once solving the problem above. The data for $message is not being sent to with the submission and client side php is not seeing that data.
     
    Not sure why that would be happening.
     
    EDIT:
     
    I changed the if(empty($message)) -> if(!isset($message)) and that seemed to have fixed it.
     
    Any reason why that would be ?  
×
×
  • 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.