You missed what I meant.

Suppose there is a piece of code like:
<script language-"javascript">
function hello() {
    document.write "hello";
}
</script>

I want to call that method inside PHP:
<?php
$c = hello();
echo $c;
?>

Hope you get it.


On Tue, May 20, 2008 at 5:40 PM, Chetan Rane <[EMAIL PROTECTED]>
wrote:

> Yea
>
> You can use the script tag in PHP
>
> Its like
> <?php phpcode.... ?>
>
> <script language="javascript" src="soruce of the file"
> type="text\javascript"/>
>
> <script language=javascript>
> Funcyion()
> </script>
>
> <?php phpcode ?>
>
> This works
>
> Chetan Dattaram Rane
> Software Engineer
>
>
>
> -----Original Message-----
> From: Shelley [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 20, 2008 3:06 PM
> To: PHP General list
> Subject: [PHP] Help Call Javascript Methods Inside PHP
>
> Hi all,
>
> How can I call a javascript method inside PHP?
> That is:
> Suppose there is a js file: http://someurl/somejs.js
> There are some js methods in that js file,
> I want to include that js into PHP and call its methods.
>
> Is it possible?
> If it is, how?
>
> Thank you very much.
>
> --
> Regards,
> Shelley
>
>


-- 
Regards,
Shelley

Reply via email to