this is something new I learned this week, and I hope someone can shed some light about it. i'm wondering why my ajax post receives disabled value? traditionally it shouldn't, right?
here's my code snippet
this is the page which sends the data
and here's the function saveAll()
<form name='submitMyForm' method='POST'>
<input type=text name='cicak' value='blablabla' disabled='true'>
<input type=button value='Submit All' onClick='saveAll(submitMyForm);'></form>
and here's the saveExpenses.php
xmlHttp = GetXMLHttpObject()
alert ("Browser doesn't support HTTP request")
var url = "saveExpenses.php";
var params = createQuery(getForm);
it displays the value in 'cicak', which is 'blablabla', although the field 'cicak' is disabled. how do I make it work just like normal submit form, which doesn't send/receive disabled input.
$cicak = $_POST['cicak'];
echo "cicak: ".$cicak;
any help is greatly appreciated. thank you very much