| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Registered User
Comfy Contributor
Joined in Apr 2004
Lives in Asia
Hosted on Sky
123 posts
Gave thanks: 0
Thanked 0 times
|
PHP Code Help
I made the index.php with the following code, so that when I go there this will redirect to another place...
Code:
<?php
header("Location:../anotherplace.php");
?>
So how should I do? ![]() |
|
|
|
|
|
#2 (permalink) | |
|
after g, before i
Resident.
Joined in Jul 2004
Lives in N,BC,CA
8,092 posts
Gave thanks: 48
Thanked 131 times
|
Quote:
First off, if I have this right it would be done by using code which is blocked by pop-up blocker, generally speaking, you want them to see it. The best way to bring up a new window is to have them click a link. If you're not wanting to bring up a new window and display that page, you could use in include. Code:
include("document.ext");
|
|
|
|
|
|
|
#4 (permalink) |
|
minor deity
Super #1
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
|
Best to use javascript then.
__________________
Proud to be a Surmunity Mod! XEON Make a fundamental difference! My Sites: Curious about Brewing Beer? Join the community! >>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax Get into an Art museum Victorian London It's your brain -ON WEB - mybrainhost.com (under development) What SHOULD Government do? Much Less than it Does! |
|
|
|
|
|
#5 (permalink) |
|
Registered User
Seasoned Poster
Joined in Jul 2004
31 posts
Gave thanks: 0
Thanked 0 times
|
For completeness only ...
The javascript for opening a pop-up window as you have described is: Code:
window.open("mypage.htm", "myWindow", "height=320, width=280, location=no, menubar=no, resizable=no, status=no, toolbar=no);
Code:
<body onload="window.open('mypage.htm', 'myWindow', 'height=320, width=280, location=no, menubar=no, resizable=no, status=no, toolbar=no');">
Code:
<p>Sorry, user. I don't trust you to control your own browser and feel like breaking the one window one page metaphor. The creators of your browser gave you the ability to block pop-ups because they, like Wolfy, agree that you should control your browsing experience - unfortunately that breaks my site. You can bow to my superior design ethic by <a href="#" onClick="window.open('mypage.htm', 'myWindow', 'height=320, width=280, location=no, menubar=no, resizable=no, status=no, toolbar=no'); return false;">clicking here</a>.</p>
<p>PS. Vote for Kerry, not Bush.</p>
-wolf Last edited by Wolfy; August 12th, 2004 at 12:39 PM.. Reason: Code corrected. |
|
|
|
|
|
#8 (permalink) |
|
minor deity
Super #1
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
|
Sure.. vote for a man who wants to socialize the country.. then we can be as sucessful as, say, france.. or russia. OH, they hate us... why? they say we're arogant... I say "they're jealous!"
Keep the war on terror OVER THERE.. not in my kids school yard. Vote GWBush 2004! Go W! John http://stegenga.net
__________________
Proud to be a Surmunity Mod! XEON Make a fundamental difference! My Sites: Curious about Brewing Beer? Join the community! >>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax Get into an Art museum Victorian London It's your brain -ON WEB - mybrainhost.com (under development) What SHOULD Government do? Much Less than it Does! |
|
|
|
|
|
#9 (permalink) |
|
Registered User
Comfy Contributor
Joined in Apr 2004
Lives in Asia
Hosted on Sky
123 posts
Gave thanks: 0
Thanked 0 times
|
Hello BigJohn,
I think we should ask admin to open a new forum for Election Polls. By the way, I am not from USA, but I also like Bush. ![]() ------------------ However I still have question for PHP... lol I wish to use only php to redirect to another page as I mentioned in earlier post. Possible? |
|
|
|