Please try again'; } else{ $usr_email = $_REQUEST['email']; $usr_name = $_REQUEST['username']; $usr_comment = $_REQUEST['comments']; $category = $_REQUEST['category']; $pattern = "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$"; if(eregi($pattern, $usr_email) == false || $usr_email == ''){ $error = true; $err_msg = 'Captcha value does not match. Please try again'; } else{ $msg = 'From: ' . $usr_name . "\n"; $msg .= 'Email: ' . $usr_email . "\n"; $msg .= 'Choosen Category: ' . $category . "\n"; $msg .= 'Comments: ' . $usr_comment . "\n"; if(mail('reviewpaint12@gmail.com','Review received from a user - Reviewpainting.com',$msg)) $success_msg = 'Your review sent successfully. Thanks for commenting'; else{ $error = true; $err_msg = 'Mail delivery failed. Please try again.'; } } } } } ?> Painting reviews, Submit reviews

  Oil Painting » Submit reviews

' . $err_msg. '

'; else if($error == false && $success_msg != '') echo '

' . $success_msg. '

'; else{ ?>

Submit Your reviews

Username:
Email Id:
Category:
Comments:
captcha
Enter Code Shown Above:
Rating