for løkke i post sætning der sendes til pbs når næste side vælges
Dette kan man<form name="formular" method="POST" action="https://secure.webhosting.dk/pbsgateway/index.php">
<INPUT TYPE="HIDDEN" NAME="product1" VALUE="<?= $product1 ?>">
<INPUT TYPE="HIDDEN" NAME="product2" VALUE="<?= $product2 ?>">
<INPUT TYPE="HIDDEN" NAME="product3" VALUE="<?= $product3 ?>">
<INPUT TYPE="HIDDEN" NAME="amount1" VALUE="<?= $amount1 ?>">
<INPUT TYPE="HIDDEN" NAME="amount2" VALUE="<?= $amount2 ?>">
<INPUT TYPE="HIDDEN" NAME="amount3" VALUE="<?= $amount3 ?>">
Dette kan man ikke?
<form name="formular" method="POST" action="https://secure.webhosting.dk/pbsgateway/index.php">
<?
$j=1;
for ($j=1; $j<3; $j++) {
if ( ${"product".$j} == 1){?>
<INPUT TYPE="HIDDEN" NAME="<?"amount$j"?>" VALUE="<?= ${"amount".$j}?>">
<INPUT TYPE="HIDDEN" NAME="<?"product$j"?>" VALUE="<?= ${"product".$j}?>">
<?}}?>
Umiddelbart kan jeg ikke forstå hvorfor? det er noget der sendes afsted til pbs, når man trykker sig videre til næste side.
