if you look up the docs for $.ajax() function you will see how to pass
variables to the PHP from your calling page.

for example:

$.ajax({
  type: "POST",
  url: "some.php",
  data: "name=John&location=Boston",
  success: function(msg){
    alert( "Data Saved: " + msg );
  }
});


On Mar 5, 9:18 am, everdream <[EMAIL PROTECTED]> wrote:
> Hello !
> I have a php function : helloUser in the file : myFunctions.php.
> This is my function :
>
> ...
> function helloUser($user)
> {
>   return "Welcome $user !";}
>
> ...
>
> I'm using jquery for an application but i don't know how to call a php
> function and give parameter (here :$user) and recover the result (here :
> "welcome ...").
>
> Can somebody help me?
>
> Thanks a lot.
>
> --
> View this message in 
> context:http://www.nabble.com/calling-a-php-function-with-jquery-tp15853808s2...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to