Hi guys!!!
I bought GF to use it to pass simple form fields to our e-payment provider.
They support only get method.
I tried following code, but doesn't work:
(
add_action("gform_post_submission", "post_to_przelewy24", 10, 2);
function post_to_przelewy24($entry, $form){
if($form["id"] != 1) //NOTE: replace 3 with your form id
return;
?>
<form method="get" action="https://sklep.przelewy24.pl/zakup.php">
<input type="hidden" name="z24_id_sprzedawcy" value="13040">
<input type="hidden" name="z24_crc" value="3c021c8b">
<input type="hidden" name="z24_return_url" value="www.fundacjadziedzic.pl">
<input type="hidden" name="z24_kwota" value="<?php echo $entry["7"] ?>">
<input type="hidden" name="z24_language" value="pl">
<input type="hidden" name="z24_nazwa" value="<?php echo $entry["2"] ?>">
</form>
<script type="text/javascript">
document.getElementById("form_to_przelewy24").submit();
</script>
<?php
}
)
question is: have I done something wrong or should I look for other form plugin?
rgs,
Jarek