If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > Open web page in new window - w/o Javascript

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-28-03, 13:38
James Aiello James Aiello is offline
Registered User
 
Join Date: Jan 2003
Location: Detroit, MI
Posts: 7
Open web page in new window - w/o Javascript

I need to open a web page, from PHP, in a new window without using any Javascript.

I tried the following without any luck.

header("Window: _blank");
header("Location: SubmitInfo.php");

Thanks in advance.

Jim Aiello
Reply With Quote
  #2 (permalink)  
Old 03-28-03, 15:40
bcyde bcyde is offline
Registered User
 
Join Date: Dec 2002
Posts: 65
I don't think it's possible to do that in PHP as PHP occurs on the server end, and opening up a new window seems to be a client side task. Can you post more info about the overall goal you're trying to accomplish, maybe someone can suggest a workaround that will achieve the same effect.

-b
__________________
(I'm only available at the email address provided in my profile on weekdays, if you have questions or advice, during off hours use AIM). Also any views I provide here or on my website are mine and not representative of any views of my work, family, friends and sometimes even myself.

http://www.bcyde.com
Reply With Quote
  #3 (permalink)  
Old 04-01-03, 08:22
hernst hernst is offline
Registered User
 
Join Date: Feb 2003
Location: Germany
Posts: 20
why not add a new target in the link like

Code:
<a href="..." target="<randomstring>">Linktext</a>
I hopefully believe there is no other posibilty to open new windows without Javascript or clicking a link, else a lot of popups will apear, even if JS is deactivated :-)
Reply With Quote
  #4 (permalink)  
Old 04-01-03, 09:03
r937 r937 is online now
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,535
<a href="url" target="_blank">

note that opening a new window this way is a deprecated behaviour -- you should allow the user to decide if she wants a new window

rudy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On