Page 1 of 1

javascript and php

Posted: Wed Jul 17, 2002 2:37 pm
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 :-)

Posted: Wed Jul 17, 2002 3:08 pm
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.

Posted: Wed Jul 17, 2002 3:16 pm
by Pepe_Le_Pew
exactly what I tought, thank's :)

Posted: Thu Jul 18, 2002 2:26 am
by twigletmac
There is a sticky in the PHP forum which explains this:
http://www.devnetwork.net/forums/viewtopic.php?t=1030

Mac