Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Web Design & Development
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry router security slow software sound toshiba trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Open a new URL in a New window in PHP

Reply  
Thread Tools
ALSDEVELOPMENTS's Avatar
Computer Specs
Junior Member with 18 posts.
 
Join Date: Sep 2006
Location: Derby
Experience: Advanced
18-Mar-2010, 06:55 PM #1
Question Open a new URL in a New window in PHP
Hi guys,

I am using the following code to open pages in php, this all works lovley, however, I want to add a case statement to open a new URL in a new window.

I have added the case statement in, however I do not know how to action the command to open the new window and website????

Can anyone help me solve this??? See Case 13 for where I want to open the new window and site.

switch($page) {
case 13:
This is where I want to open a URL for a web page in a new window. Any ideas???
break;
case 12:
include('rooms.php');
break;
case 11:
include('functions.php');
break;
case 10:
include('dietary.php');
break;
case 9:
include('accommodation.php');
break;
case 8:
include('evening.php');
break;
case 7:
include('lunch.php');
break;
case 6:
include('location.php');
break;
case 5:
include('samplemenu.php');
break;
case 4:
include('events.php');
break;
case 3:
include('openinghours.php');
break;
case 2:
include('contactus.php');
break;
case 1:
default:
include ('main.php');
break;
}
colinsp's Avatar
Computer Specs
Senior Member with 1,044 posts.
 
Join Date: Sep 2007
Location: Spain
Experience: Adv PC, int HTML, bit PHP
19-Mar-2010, 03:18 AM #2
I think you want to use the header command probably something like

Code:
header("location: your_page-here.php");
skyhigh007's Avatar
Senior Member with 581 posts.
 
Join Date: Jun 2004
19-Mar-2010, 02:44 PM #3
This link might help you: click here
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:30 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.