Re: PHP-> JavaScript

From: Date: Fri, 28 Sep 2001 02:09:32 +0000
Subject: Re: PHP-> JavaScript
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-9587@lists.php.net to get a copy of this message
I'm not sure which way you are trying to go, but here is a function I use all the time: <?php function jAlert($foo){ ?> <script language="JavaScript" type="text/javascript"> <!-- alert('<?= $foo ?> '); //--> </script> <? } /*Some Code or html......................... ............................................. */ jAlert("wow"); ?> "Sichta Daniel" <Daniel.Sichta@swh.sk> wrote in message news:29BDD4F529FCD311B631009027357C4E03CC28C7@btss103a.swh.sk... > Hi !! > > Is there any way to parse variable from JavaScript to PHP ? Something like: > function xxx (id) { > <? $id = ?> id; > } > > DAN >

« previous php.windows (#9587) next »