체크 아웃을 진행하려면 장바구니를 최소 20 달러가 필요합니다. 여기 내 코드를 도와주세요장바구니 최소 금액
$cartOutput = "";<br />
$cartTotal = "";<br />
$minim = "20";<br />
$pp_checkout_btn = '';<br />
$product_id_array = '';<br />
setlocale(LC_MONETARY, "en_US");<br />
$cartTotal = money_format("%10.2n", $cartTotal);<br />
$minim = money_format("%10.2n", $minim);<br />
// Finish the Checkout Btn
if ($cartTotal > $minim)<br />{<br />
$pp_checkout_btn .=<br />'<form>
<input type="hidden" name="custom" value="' . $product_id_array . '" accept-charset="UTF-8">
<input type="hidden" name="notify_url" value="https://www.com//.php">
<input type="hidden" name="return" value="https://www.gogrocerycart.com/checkout_complete.php">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="cbt" value="Return to The Store">
<input type="hidden" name="cancel_return" value="https://www.gogrocerycart.com/paypal_cancel.php">
<input type="hidden" name="lc" value="US" accept-charset="UTF-8">
<input type="hidden" name="currency_code" value="USD">
<input type="image" align="right" src="http://www.com/en_US/i/btn/x-click-but01.gif" name="submit" alt="Make payments with - its fast, free and secure!">
</form>';
}else{<br />
$pp_checkout_btn .= "A minimum of ". $minim ." is required ";
}
}
왜 PHP에서 '
'을 사용합니까? 그것을 원한다면 먼저 PHP를 벗어나서 HTML로 취급해야합니다. – am05mhz