Re: spawning new window with PHP

From: Date: Tue, 10 Jun 2003 15:31:22 +0000
Subject: Re: spawning new window with PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-150925@lists.php.net to get a copy of this message
On Tuesday 10 June 2003 10:18, Amanda McComb wrote: > I have a list of urls in a MySQL database and I use PHP to get them out. > I need to spawn a new window and use one of those URLs as the location for > the new window. Is there PHP code that can do this? Here is part of the > javascript I currently use: > > > if PHP can't do this, is there a way to create a variable in PHP that can > be used in javascript? PHP is server side only, so no it can't open up new windows, but since Javascript is client-side you can pass your Javascript any PHP variable you want and it will resolve it while generating the page. Basically the same way you print out HTML code with PHP variables "in it". Henrik -- Henrik Hudson lists@rhavenn.net "`If there's anything more important than my ego around, I want it caught and shot now.'" --Hitchhikers Guide to the Galaxy

« previous php.general (#150925) next »