dimanche 30 octobre 2016

"IF" statement inside End Submit does not work

I have to following code in my End Submit section (in Breezing Forms), which is supposed to be excecuted after form submit button is clicked. But for some reason IF statement does not work. Could you guys please correct the code (IF statement), so that I can use this code.

Thank you.

enter code here$this->execPieceByName('ff_InitLib');
$currencyValue=ff_getSubmit('depocurrency');

if($currencyValue!='EUR') {

echo '

<form method="POST" name="order_confirmation_form" 
action="http://ift.tt/2f3okhy">
<input type="hidden" name="receiver"  value="123456789"/>
<input type="hidden" name="formcomment"  value="'.ff_getSubmit( 'ordernumber' ).'"/>
<input type="hidden" name="label"  value="16078"/>
<input type="hidden" name="quickpay-form"  value="shop" />
<input type="hidden" name="targets"  value="Order No '.ff_getSubmit( 'ordernumber' ).'"/>
<input type="hidden" name="sum"  value="50.00" data-type="number" />
<input type="hidden" name="need-fio"  value="true"/>
<input type="hidden" name="need-email"  value="true"/>
<input type="hidden" name="need-phone"  value="true"/>
<input type="hidden" name="need-address"  value="false"/>
<input type="hidden" name="paymentType"  value="AC"/>
<input type="hidden" name="successURL"  value="http://ift.tt/2fkR751"/>
</form>

}

<script>
document.order_confirmation_form.submit();
</script>';

exit;

Aucun commentaire:

Enregistrer un commentaire