title: I need to submit the form and redirect the parent page on form submission in a fancy box
body: <p>This is the form code given in the fancybox popup iframe page.</p>
  
  <p>I need to close this popup and redirect the parent page to the </p>
  
  <p><a href="http://luxuryresortstayvouchers.com/newdesign/?p=list.php" rel="nofollow">http://luxuryresortstayvouchers.com/newdesign/?p=list.php</a></p>
  
  <p>when the submit button is pressed.</p>
  
  <p>following function is effectively closing the fancybox popup but the parent page is not redirected to the desired location.</p>
  
  <pre><code>function closeMeUp()
  {
  parent.$.fancybox.close();
  }
  
  
  
  
      &lt;form action=""http://luxuryresortstayvouchers.com/newdesign/?p=list.php method="post" target="_parent" class="form_class" enctype="multipart/form-data" &gt;
  
          &lt;input class="vouch_num" type="text"  placeholder="Checkin date" maxlength="25" size="50" id="datepicker" /&gt;
          &lt;input class="vouch_num" type="text"  placeholder="Checkout date" maxlength="25" size="50" id="datepicker2" /&gt;
          &lt;br /&gt;
          &lt;input type="button" id="ok" class="submit_but" value="Submit" onClick="closeMeUp();" /&gt;
          &lt;input type="button" id="cancel" class="cancel_but" value="Cancel" /&gt;
  
      &lt;/form&gt;
  </code></pre>
  
  <p>Any help is highly appreciated.</p>
  
  <p>Thanks.</p>