If you add variables to the URL, they'll probably be included in the $_GET variable. How are you encoding your POST request -- as a JSON object?

- Barry

On 25/02/10 07:31, Ryan Florence wrote:
var req = new Request.HTML(
{
url: '?action=edit_message',
onSuccess: function(response)
{
//do something
}
}).post('elForm');

On Feb 24, 2010, at 3:50 PM, Floris wrote:

Hi all,

When I submit my form I send it with an mootools post request.
It works fine, but I want to add some additional variables to the post
request that I have available in my script, but not in my form. How
can I do that?

I can add them to the url, but then I still can't access the variables
in PHP via $_POST.

Thanks in advance for your answer!


This is the code where it's all about:

var req = new Request.HTML(
{
url: '?action=edit_message',
data: elForm,
//I want to add these variables into the POST(): '&forum_id=' +
intForumId + '&topic_id=' + intTopicId + '&message_id=' + intMessageId
onSuccess: function(response)
{
//do something
}
}).send();



--
Not sent from my Apple πPhone.

Reply via email to