By default, Ajax sends parameters as post data. Try checking for
$_POST["centre"], or change your Ajax call to use the "get" method instead:
new Ajax.Request(url, {
    method: 'get'
});

-Hector

On Sat, Sep 27, 2008 at 11:52 AM, matthewboh <[EMAIL PROTECTED]> wrote:

>
> I've done Javascript and PHP coding, but decided to get started with
> AJAX - but I'm having a problem that's probably something dumb on my
> part.
>
> I've got a page that sends out the following
>
> centre=userLogin&username=akdfk&password=%3Bkda%3Bkj
>
> In the PHP program, I've put some code to just figure out if it got
> there - which it does.  However, when I do a
>
>        if(isset($_GET["centre"])) echo "centre is set"; else echo "centre
> is
> not set";
>
> in the PHP program, it always comes bacak that centre is not set.
>
> What should I be looking for?
>
> Thanks,
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to