title: PHP Code for "Required/Input Email Should Contain '@' and at least one dot. '.'"
body: <p>I am working on a PHP file where password and email has to have a requirement for their files. Requirements I am doing in a separate document. </p>
  
  <p>So far for my password I have this set up in register.php
  -> </p>
  
  <pre><code>&lt;div class="tRow&gt;
                  &lt;div class="tCell"&gt;&lt;label for="txtpassword"&gt;Password:&lt;/label&gt;&lt;/div&gt;
                  &lt;div class="tCell"&gt;
                  &lt;input type="password" id="txtpassword" name="Password"/&gt;
                  &lt;/div&gt;
              &lt;/div&gt;&lt;!-- END OF THIS SELECTION --&gt;`
  </code></pre>
  
  <p>When user clicks Submit Button
  -> <code>div class="tRow"&gt;
                      &lt;div class="tCell"&gt;&lt;input type="submit" id="submit_button" value="Sumbit" onclick="CheckLength('txtpassword')" /&gt;&lt;/div&gt;
                  &lt;/div&gt;&lt;!--END OF THIS SELECTION--&gt;</code></p>
  
  <p>I am currently doing the same for email. </p>
  
  <p><code>&lt;div class="tRow&gt;
                      &lt;div class="tCell"&gt;&lt;label for="user_email"&gt;E-mail:&lt;/label&gt;&lt;/div&gt;
                      &lt;div class="tCell"&gt;
                      &lt;input type="text" id="user_email" name="E-mail"/&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;&lt;!-- END OF THIS SELECTION --&gt;</code></p>
  
  <p>Any suggestions on how to add the requirement for the email?</p>