[PHP-WIN] RE: [PHP] RE: [PHP-WIN] Can PHP and Java work together?

2001-08-31 Thread Alfredeen, Johan
Jack, My apologies. Disregard my earlier example - it only works because the PHP variable is "passed" to the javascript variable during onLoad when everything is executed. But in your case, the page has already been sent to the client and PHP can only be called by calling the server again. Joha

[PHP-WIN] RE: [PHP] Can PHP and Java work together?

2001-08-31 Thread Alfredeen, Johan
Jack, Yes this is possible. I assume you want to use a javascript onClick event function. Then in your javasript code, just execute your PHP code. You can run PHP code within a javascript block. For example, on my site I assign a javascript variable to the value held in a PHP variable like this: