title: Simple php contact form, but on submit want to keep the validate.check(this) and add window.open
body: <p>I have a simple php contact form whereby i would like any error messages or thank you pages to open in a new window, whilst also keeping the validate.check bit.</p>
  
  <p>Current code looks like:</p>
  
  <p><code>&lt;form name="contactform" method="post" action="contactformpost.php" onsubmit="return validate.check(this)"&gt;</code></p>
  
  <p>Would it be right in coding it like this:</p>
  
  <p><code>&lt;form name="contactform" method="post" action="contactformpost.php" onsubmit="return validate.check(this); window.open('','my_form_target', 'width=300,height=200', true)"&gt;
  </code></p>