Link click and button click in one HTTP request
<p>I was developing on my localhost and came across this question.</p>

<p>Consider there is such HTML code:</p>

<pre><code>&lt;form action="" method="POST"&gt;
    &lt;input type="submit" name="submitButton" id="submitButton"&gt;
&lt;/form&gt;

&lt;a onclick="clickButton('submitButton');" href="guestbook/index.php?pageNumber=1"&gt;
</code></pre>

<p>The <code>&lt;a&gt;</code> click triggers submit button click event. The Javascript function looks like this:</p>

<pre><code>function clicktButton(id) {
  if (id != "")
    document.getElementById(id).click(); // this will trigger the click event
}
</code></pre>

<p>My question is: is something like this possible? To send a HTTP request with link press and button press simultaniously?</p>

<p>Because by pressing an <code>&lt;a&gt;</code> link I already send a HTTP request with <code>$_GET['pageNumber']</code> parameter. But I also want to send the <code>$_POST['submitButton']</code> data at the same time.</p>

<p>Thanks in advance!</p>