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. Johan > > -----Original Message----- > > From: Jack [mailto:[EMAIL PROTECTED]] > > Sent: August 31, 2001 2:13 AM > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > Subject: [PHP-WIN] 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 Windows 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] -- 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]