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();

Reply via email to