0
我有一個包含客戶數據的PHP數組。我將在jQuery中修改這個值。然後,O想要用Id(cashup_id
)將更改後的值從jquery提交給服務器。請參閱下面的PHP數組。請幫忙。謝謝。如何從PHP和jQuery提交數據到服務器
$Cashups = array(
array(
'cashup_id' => 146456,
'display_time' => 'Wed 16th Mar, 9:55pm',
'terminal_name' => 'Bar 1',
'calculated_cash' => 389.20,
'actual_cash' => 374.6,
'calculated_tenders_total' => 1,551.01,
'actual_tenders_total' => 1,551.01
),
array(
'cashup_id' => 146457,
'display_time' => 'Wed 16th Mar, 9:56pm',
'terminal_name' => 'Bar 2',
'calculated_cash' => 493.3,
'actual_cash' => 493.3,
'calculated_other' => 1509.84,
'actual_other' => 1509.84
)
);
我們展示JS代碼... – powtac 2011-03-29 10:29:11
你是否看了[AJAX輔助功能(http://api.jquery.com/category/ajax/helper-functions/)jQuery的? – ThoKra 2011-03-29 10:30:17
你將如何從jquery修改PHP數組? – Headshota 2011-03-29 10:31:08