|
That's encouraging. I don't think we'll have a problem with data xfer since it's all text/html, but will watch that.
I'm glad POST will work, but I don't know how to retrieve the $_POST var on the php script that the JavaScript request is calling.
I'm using the prototype library, so here's my call:
var url = 'saveActionItem.php?divID='+id+'&key='+myKey+'&itm='+myItm;
var myAjax = new Ajax.Request(
url, { method: 'post',
onComplete: update_page
});
The $_GET params are designed to control my sql query.
On the php side, I grab the text using:
$actTxt = $_POST['validFormVar'];
However, the $_POST var is not set, so $actTxt="" and my update essentially deletes the text.
Can you point me in the right direction?
|