Re: Question about php "forwarding" to javascript

From: Date: Sun, 15 Feb 2004 07:26:07 +0000
Subject: Re: Question about php "forwarding" to javascript
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-177724@lists.php.net to get a copy of this message
I'm not sure i completely understand what you need but you could write dynamic Javascript using PHP e.g; $myString = 'hey dude, help me'; <script language = .......> <?php if( strstr('help me') ) include('jsfunction.inc'); ?> </script> The code i wrote is really dumb, but trying to give you an example. hope this helps, Ammar "Peter Andersson" <peter@legio.mine.nu> wrote in message news:1097.192.168.1.252.1076827931.squirrel@legio.mine.nu... > Hi! > > I am using a web page that uses the following php code to display the > contents of a dynamically update webpage: > > <?php > include("http://.../source.xls); > ?> > > Is it possible to "forward" the contents of the code to a javascript? > eg if the file "source.xls" contains the text "help me" is it possible to > send that text to a javascript? I am quite stuck here so any help would be > greatly appreciated. > > regards > > Peter

« previous php.general (#177724) next »