Is there a way how link can post data to a form on different page?
I imagine something like this, but this only open the requested page in new window (which is fine), but leaves the form on that page unfilled and also unsubmitted.
<?php echo '
<form action="http://www.someweb.cz/info2/dochazka/dochazka.php" method="post">
<input name="obdobi" type="hidden" value="'.$obdobi[Obdobi].'" />
<input name="kurs" type="hidden" value="'.$kurz_vybrany.'" />
<a target="_blank" style="text-decoration:none;"
href="http://www.someweb.cz/info2/dochazka/dochazka.php?doc=start.htm"
onclick="this.form.submit();">'.$pocet_lidi.'</a>
</form>'; ?>
I can slightly modify the "action" page code, but I'd like to keep the POST method.