javascript and php

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Pepe_Le_Pew
Forum Newbie
Posts: 6
Joined: Tue Jul 09, 2002 9:52 am
Location: Longueuil, Québec

javascript and php

Post by Pepe_Le_Pew »

Is there anyway to call a php function from a javascript that resides on the same page ?

if yes, could someone show me how, cause I'm running into a lot of error messages.

Thank's :-)
User avatar
haagen
Forum Commoner
Posts: 79
Joined: Thu Jul 11, 2002 3:57 pm
Location: Sweden, Lund

Post by haagen »

You cannot run a php function from a javascript. This because the JavaScript runs on the client and php runs on the server.
User avatar
Pepe_Le_Pew
Forum Newbie
Posts: 6
Joined: Tue Jul 09, 2002 9:52 am
Location: Longueuil, Québec

Post by Pepe_Le_Pew »

exactly what I tought, thank's :)
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

There is a sticky in the PHP forum which explains this:
http://www.devnetwork.net/forums/viewtopic.php?t=1030

Mac
Post Reply