hi, here is how you do it <? $strJavaScriptValue="Hello"; ?> <script language="JavaScript"> alert('<? echo $strJavaScriptValue?>'); </script>
this will alert "Hello!". i think you get the point. Haseeb ----- Original Message ----- From: "Nirmala P" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 30, 2003 10:45 AM Subject: [PHP] Help needed > Hi All, > > I am new to PHP world. > > Could any body tell me how to call any function(written in PHP) > from Java script. > Actually my PHP function return a string value which i need to > access in my java script code. > > Thanks in Advance.. > > Nirmala > ___________________________________________________ > Click below to experience Sooraj Barjatya's latest offering > 'Main Prem Ki Diwani Hoon' starring Hrithik Roshan, > Abhishek Bachchan & Kareena Kapoor http://www.mpkdh.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php