Re: Opening new browser window

From: Date: Fri, 19 Sep 2003 19:18:14 +0000
Subject: Re: Opening new browser window
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-163203@lists.php.net to get a copy of this message
Why use a javascript to create a new window? Any link can be directed to a new window with a simple target=. <a href="search.php?ID=$companyID&Type=Industry" target="Industry"> "Industry" would be the reference name of the window. For instance, if you wanted to refer to it from another window. PHP is server side, all it does is serve up a resulting page to a client. The client has no idea that PHP is being used, nor does it care. To answer your question you can't do it in PHP, but you can do it using HTTP, HTML and/or Javascript. On Friday, September 19, 2003, at 02:13 PM, Rich Fox wrote:
And if you are not in a form? My current code is: <a href="search.php" onClick="return popup(this, 'Industry','?ID=$companyID&Type=Industry')"> <img src="images/Plus.gif"> </a> where popup is my javascript function. But as I said below, the popup doesn't work as expected and I do not want to use javascript. I can also not be in a form. Suggestions? Rich -- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577


« previous php.general (#163203) next »