Re: How can I use php codes in javascript?

From: Date: Thu, 20 Jun 2002 00:55:02 +0000
Subject: Re: How can I use php codes in javascript?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103052@lists.php.net to get a copy of this message
Well, it depends what you want to achieve. eg: --- <? $myvar = "foo"; ?> <A HREF="javascript:alert('<?=$myvar?>');">click</a> --- works fine. remember, PHP is parsed on the server (before anything it's sent to the browser), and javascript is parsed on the client side (browser). Justin French on 20/06/02 10:50 AM, Burak Delice (bdelice@abt.com.tr) wrote: > hi, > > I want to use php codes in a java function. Could you help me please. How > can I do this? is this possible? if it is, is there any example about this > on the Internet? > > thank you very much. > >

« previous php.general (#103052) next »