There might be a number of different reasons why this doesn't work.
Here are some tips that might work:

1) When you create the 'req' object, create it like this:

        try{
                var xmlObject = new XMLHttpRequest();
        }
        catch (error){
                var xmlObject = new ActiveXObject("Microsoft.XMLHTTP");
        }

2) Between open and send, include this line:

       xmlObject.setRequestHeader('Content-type','application/x-www-
form-urlencoded');

Also make sure that the URL is correct.

Thanks,
Teo

On Sep 3, 2:04 am, bobovieri <[EMAIL PROTECTED]> wrote:
> Help me!
>
> var user="Andrew";
> var req = new XMLHttpRequest();
> req.open("POST", options.getValue("URL")+"/index.php", false);
> req.send("&user="+user);
>
> In index.php:
> echo($_POST['user']);
>
> don't work! HELP ME, I need use POST method because I must pass
> several parameters
>
> thanks in advance,
> bobo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Desktop Developer Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Desktop-Developer?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to