Here is the button:
<input class = "preview" type="submit" name = "Preview" value="Peržiūrėti" />
and here is the submit:
$('input.preview').click(function() {
$('form').attr( 'target', '_blank' );
document.myform.submit();
});
So when I submit with jquery, and try to get with php the data
print_r($_REQUEST['Preview']);
It does not see such index.
But when I change button type to submit and remove javascript code for submitions, then it works. Have you idea, why it works differently when I submit with jquery and what to do?