×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dylan Lopez
Added: Nov 23, 2017 9:54 AM
Views: 3
Tags: no tags
  1. $name = test_input($_POST["name"]);
  2. if (!preg_match("/^[a-zA-Z ]*$/",$name)) {
  3.   $nameErr = "Only letters and white space allowed";
  4. }