> $$('a.delete').addEvent('click', function() {
> var newDelete = new Request({
> url: 'deletefile.php',
> method: 'POST',
> data: 'file='+this.get("id"),
> onRequest: function() {},
> onSuccess: function(text, xmlanswer) {},
> onFailure: function(){alert('Error!');}
> }).send();
> });
There's nothing intrinsically wrong here, as roughly transplanted into
a jsFiddle:
http://jsfiddle.net/6QBjd/1/
(You should really put all your example code there for faster, better
help.)
Check Firebug/Developer Tools and you'll see that the data is getting
properly posted on the wire. What you're doing with it in PHP is
probably the problem.
-- Sandy