Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 12th, 2012  |  syntax: None  |  size: 0.27 KB  |  hits: 5  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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)) {