Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old September 10th, 2004, 01:42 AM
ksynergy ksynergy is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 19 ksynergy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to ksynergy
Open a new window on a redirect

I suspect there is a simple answer to this, but I haven't found it yet.

I have an old site that uses a simple search to locate information from a mySQL database table. The search form asks for two pieces of information. A category and an ID value. The old code returned a results page with the details of the item based on a match with the category and ID value. Now the client wants the results page to open in a new window.

I original code used a redirect page that had code like this:
php Code:
Original - php Code
  1. header("Location: http://www.mysite.com/search_details.php?type=$type&id=$id");


I know that location won't accept target='_blank' or any other target designation to open the page in a new window. Is there a work around for this?

Reply With Quote
  #2  
Old September 10th, 2004, 04:55 AM
Ilija Studen Ilija Studen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: NS || BB SCG
Posts: 5 Ilija Studen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Open a new window on a redirect

I think (I'm not sure) that pure PHP can't help you here. Insted of using header redirection use standard redirection... META Refresh (HTML) or window.open (JS).

Don't redirect from PHP, just echo page that will do that.

Sorry for poor english

Reply With Quote
  #3  
Old September 10th, 2004, 05:29 AM
System System is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Posts: 665 System User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Message Moved

Thread moved from 'PHP Coding' to 'Client Side Things' by kendo.

Reason:

Reply With Quote
  #4  
Old October 5th, 2004, 04:16 PM
bsmith bsmith is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: palm bay, fl, usa
Posts: 204 bsmith User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to bsmith
RE: Open a new window on a redirect

In you "<form>" statement, put 'target="_blank"' .. that will do what you want. When you click on "submit", it will open a new window.

That is what your trying to do, right?

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Open a new window on a redirect


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway