Re: Help needed
| From: | Haseeb | Date: | Mon, 30 Jun 2003 18:25:12 +0000 |
| Subject: | Re: Help needed | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-153373@lists.php.net to get a copy of this message | ||
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" <nirmala_hare@rediffmail.com>
To: <php-general@lists.php.net>
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
>
>