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:
var jstitle = <? print("\"" . $article_array[1][0] . "\""); ?>;
Good luck,
Johan
Which World?
www.pongworld.com
-----Original Message-----
From: Jack [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 31, 2001 2:13 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] Can PHP and Java work together?
Dear all
I want to ask if i want to perform two task after the user had click a
button,
1 is the task perform by PHP
2 is the task perform by JavaScript
is it possible to do so?
I'm actually fresh on JavaScript, before i would call the JavaScript, what
should i do first or what should i set before though?
Thx
Jack
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]