Javascript

From: Date: Thu, 29 Mar 2001 16:04:46 +0000
Subject: Javascript
Groups: php.windows 
Request: Send a blank email to php-windows+get-6372@lists.php.net to get a copy of this message
Before you shout at me, I know that this isn't the right place for this question, but you're all always so helpful that I thought I'd ask anyway (grovel grovel..) I'm playing around with php and javascript again, passing variables from one to the other. I've got stuck on something too basic to mention though - I want to open a new window using the jscript window.open() method, but when I pass in the URL, I also want to pass in a querystring. I've got this so far: - function OpenANewWindow(IDent) { msgWindow=window.open("ContentsWindow.php3?ID=IDent","displayWindow","menubar=no,width=500,height=300") } The IDent that is passed into the funtion is an integer, and that bit is fine, but how do I dereference it in the querystring so that what gets passed to the new window is along the lines of (say the value of IDent is 6) ContentsWindow.php3?ID=6 Thanks Tom

« previous php.windows (#6372) next »