2 つの id-s を一緒に配置$_POST
する必要があり、それらを爆発させたいと思います。例:
私の id-s は 38 と 310 です。html ファイルでこの id = "38.310" に id-s を作成しました。
$_POST
IDを爆発させたい後:
$id=$_POST['id'];
echo($id); // Gives 38.31
$new_id = explode(".", $id);
echo($new_id[0]); // Gives 38
echo($new_id[1]); // Gives 31
これらのIDを丸めない方法はありますか?
38
とが必要310
です!ID310
も1003000
...
編集:
function dostuff(document, message, id, action) {
var eingabe;
eingabe = confirm(message);
if (eingabe === true) {
document.msgform.action.value = action;
document.msgform.id.value = id;
document.msgform.submit();
} else {
return true;
}
return false;
}
リンク
<a href="#" onclick="dostuff(document, 'MESSAGE',<?php echo($row['vID']);?>.<?php echo($row['id']);?>,'FITTER_fitter_repaired');" class="button small red" >ACTION</a>
$行['vID'] = 38
$row['ID'] = 310
私の送信は次のようになります
<form enctype="multipart/form-data" name="msgform" action="" method="post">
<input type="hidden" value="" name="action"/>
<input type="hidden" value="" name="id"/>
</form>