executing PHP code from Javascript

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
g8z
Forum Newbie
Posts: 3
Joined: Thu May 02, 2002 8:00 pm

executing PHP code from Javascript

Post 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>
User avatar
enygma
Site Admin
Posts: 175
Joined: Fri Apr 19, 2002 8:29 am
Location: Dallas, Tx

Post by enygma »

you have to resumbit the page. PHP is only server-side.
-enygma
Post Reply