Parse data before sending it to action link or artificial POST request
<p>I have a form and it have <code>action="http://anotherhost.com"</code>. But I have a problem, before sending it to another host I need to save entered data to database and here is a problem, how to do it?</p>

<p>I have idea, but don't know how to realise it.<br />
1) Change <code>action="http://anotherhost.com"</code> to my site, parse entered data and add into database, but then after this I need to simulate artificial POST request to another host.<br />
2) First parse it with JS (AJAX) and after parsing it, let to send form to another host.</p>
