title: Popup window in PHP?
body: <p>here's a quick question:</p>
  
  <p>How do you make a window pop up for your error handling in php?
  Is javascript the only way to do this or is there a way to do this in PHP?</p>
  
  <p>i have a PHP-file, and one of the lines of code is the following:</p>
  
  <pre><code> echo implode('&lt;br /&gt;', $errors);
  </code></pre>
  
  <p>This line of code catches all the errors coming from my form, as following:</p>
  
  <pre><code> if (strlen($_POST['name'])&lt;3) $errors[] = 'De naam van uw bedrijf moet minstens 3 letters bevatten';
    if (strlen($_POST['number'])&lt;9) $errors[] = 'Uw nummer moet minstens 9 nummers bevatten';
    if (!preg_match($regexp_mail, $_POST['email'])) $errors[] = 'Onjuist E-mailadres';
  </code></pre>
  
  <p>when somebody presses submit on my form, the errors will show themselves on a separate page, i want this in a pop-up window.
  Thank you in advance</p>