title: How to prevent Numeric data when:HTML Input type = "text"?
body: <p>I currently have a html/php registration page setup with first name &amp; last name text fields, but i'd like to prevent inputs of numeric data (limiting input to alphabetic letters only) This is probably a duplicate question but i just couldn't seem to find anything while researching. How can i prevent user's numeric inputs?</p>
  
  <pre><code>&lt;tr&gt;
    &lt;th&gt; &lt;label for = "firstname"&gt;Firstname &lt;/label&gt; &lt;/th&gt;
    &lt;td&gt; &lt;input type = "text" name = "firstname" id = "firstname" value = "&lt;?php echo isset($firstname)?$firstname:''; ?&gt;" required /&gt; &lt;/td&gt;
  &lt;/tr&gt;
  
   &lt;tr&gt;
      &lt;th&gt; &lt;label for = "lastname"&gt;Lastname &lt;/label&gt; &lt;/th&gt;
      &lt;td&gt; &lt;input type = "text" name = "lastname" id = "lastname" value = "&lt;?php echo isset($lastname)?$lastname:''; ?&gt;"required /&gt; &lt;/td&gt;
   &lt;/tr&gt;
  </code></pre>