Re: JavaScript and PHP

From: Date: Mon, 10 Dec 2001 07:37:48 +0000
Subject: Re: JavaScript and PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-77182@lists.php.net to get a copy of this message
Assuming your page is called something like myPageWithScripts.php, do something like this: < html > < head > < script language="javascript" type="text/javascript" > < !-- //Hide function myFunction { alert("My PHP variable value is <? echo($variable); ?>"); } // --> < /head > ...and so on. Jordan wrote:
Hey all, Just a quick question...how would you pass a PHP variable to a JavaScript function? -Jordan
-- Sliante, Richard S. Crawford mailto:rscrawford@mossroot.com http://www.mossroot.com AIM: Buffalo2K ICQ: 11646404 Yahoo!: rscrawford MSN: underpope@hotmail.com "When you have lost the ability to laugh at yourself, you have lost the ability to think straight." --Clarence Darrow "Push the button, Max!"

« previous php.general (#77182) next »