Erm, there's a few hurdles in front of you...

In short, you have to:
- make a URL that runs the php script- this should work via your
browser (helloscript.php?user=bob, perhaps),
-  call this URL via ajax, and insert the output into the current
page.


On Mar 5, 5:18 pm, 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