//首先在这里写好相关的调用代码
$coin = 1280;
$money = 1121;
$coinsale = $coin / 100;
if ( $_POST[ "coin" ] != 0 ) {
$money -= $coinsale;
}
?>
无标题文档土特币
¥
function checkboxOnclick( checkbox ) {
var goods = document.getElementById( "npay" );
var m = document.getElementById( "sale" ).value;
var c = document.getElementById( "asd" ).value;
var f = document.getElementById( "form1" );
if ( checkbox.checked == true ) {
m -= c;
goods.innerHTML = "¥" + m;
f.submit();
} else {
goods.innerHTML = "¥" + m;
}
}
希望能给个小例子 , 具体实现不太会,php不太熟悉。谢谢大家:)