Guest User

Untitled

a guest
Sep 16th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. How to make sure blank messages cannot be sent PHP Validation [closed]
  2. if(!empty($string)) {
  3.  
  4. 1234567890-=qwertyuiop[]asdfghjkl'#zxcvbnm,./!"£$%^&*()_+|?<>
  5.  
  6. if(trim($string) != "") {
  7.  
  8. if (preg_match('/[0-9a-zA-Z-=[]'#\,./!"£$%^&*()_+|?<>]+/is', $string)) {
Add Comment
Please, Sign In to add comment