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 [EMAIL PROTECTED] "`If there's anything more important than my ego around, I want it caught and shot now.'" --Hitchhikers Guide to the Galaxy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php