Page 1 of 1

executing PHP code from Javascript

Posted: Fri May 03, 2002 3:51 am
by g8z
Is there some way to execute a PHP script (or any server-side script for that matter) from within Javascript? (so that the script only executes when a particular Javascript function is called).

E.g.

<script language=Javascript>

function doPHP()
{
// execute a PHP script residing on the server
}

</script>

Posted: Fri May 03, 2002 7:44 am
by enygma
you have to resumbit the page. PHP is only server-side.
-enygma