Log In
Sign Up
Why Join Hot Scripts?
Hot Scripts
All Categories
PHP
Python
Tools & Utilities
XML
Ruby on Rails
Ajax
Web Hosting
ASP
ASP.NET
C & C++
CFML
Flash
Java
JavaScript
CGI & Perl
HTML5
Forums
Blog
Scripts
Hosted Apps
Plugins
Design Templates
Forum
Blog
Advertise
Contact Us
Register
FAQ
Rules
Calendar
Search
Today's Posts
Mark Forums Read
RSS Feeds
Current location:
Hot Scripts Forums
»
Programming Languages
»
PHP
» Automatically loading page
Automatically loading page
LinkBack
Thread Tools
Display Modes
#
1
(
permalink
)
08-27-03, 12:50 PM
mpalmen
New Member
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Automatically loading page
Greetings !
Can anyone tell me what PHP code I should use when I want another page to be automatically loaded should part of a IF statement be activated ?
Basically I want something like this:
IF (statement TRUE)
{ load page automatically}
ELSE
{do another thing}
All suggestions are welcome.
Regards,
Maurice
mpalmen
View Public Profile
Find all posts by mpalmen
#
2
(
permalink
)
08-27-03, 02:15 PM
ermau
Wannabe Coder
Join Date: Aug 2003
Location: Florida, USA
Posts: 240
Thanks: 0
Thanked 0 Times in 0 Posts
Load as in go to another page?
PHP Code:
header
(
"Location: http://yoururl/"
);
or as in load as in display in the current page?
PHP Code:
include_once(
'blah.html'
);
__________________
PHP / mySQL Developer
ermau
View Public Profile
Find all posts by ermau
#
3
(
permalink
)
08-28-03, 12:04 AM
Cagez
Eeew, dirty!
Join Date: Jun 2003
Location: Toronto, Ontario
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
A note about header() though, if you've sent any headers already (cookies, session, or any output) then you'll get a "headers already sent" error.
__________________
DevBox.net - Developer Resources. Now Launched!
-
DevBox is looking for content, can you help?
-
DevBox Developer Forums
Cagez
View Public Profile
Find all posts by Cagez
#
4
(
permalink
)
08-29-03, 05:27 PM
joeldg
Newbie Coder
Join Date: Jul 2003
Location: New Orleans
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
umm...
Are you talking about page-switching?
i.e. dynamically include pages?
switch ($page){
case "home":
include "pages/home.php";
break;;
case "other":
include "pages/other.php";
break;;
}
something like that?
or what?
__________________
TAGword, ads the way you always wanted.
<a href="http://tagword.com">tagword.com</a>
joeldg
View Public Profile
Visit joeldg's homepage!
Find all posts by joeldg
#
5
(
permalink
)
09-02-03, 06:40 PM
Zero-Tolerance
New Member
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
can do it in html <meta http-equiv="refresh" content="10; url=http://google.com">
wish ppl would try google b4 they post
Zero-Tolerance
View Public Profile
Visit Zero-Tolerance's homepage!
Find all posts by Zero-Tolerance
#
6
(
permalink
)
09-02-03, 08:40 PM
Cagez
Eeew, dirty!
Join Date: Jun 2003
Location: Toronto, Ontario
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
I wish people would read the posts before replying with useless complaints
__________________
DevBox.net - Developer Resources. Now Launched!
-
DevBox is looking for content, can you help?
-
DevBox Developer Forums
Cagez
View Public Profile
Find all posts by Cagez
Bookmarks
Digg
del.icio.us
StumbleUpon
Google
«
is it possible to find out what script this is?
|
Seen this alot
»
Currently Active Users Viewing This Thread: 1
(0 members and 1 guests)
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
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
Forum Rules
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
General Community
Announcements
Polls
The Lounge
New Members & Introductions
Script Requests
HotScripts.com Discussion
Hot Scripts Forum Questions, Suggestions and Feedback
General HotScripts Site Discussion
HotScripts Site Bug Reports
General Web Coding
HTML/XHTML/XML
HTML5
JavaScript
CSS
Flash & ActionScript
Programming Languages
PHP
Perl
ASP
ASP.NET
C/C++
Visual Basic
Windows .NET Programming
Everything Java
Other Languages
Other Discussions
Web Servers
Database
Other Topics
Web Design
API
Frameworks
AJAX
Security
Server Administration
Portable Device Programming
Cloud Computing
Ruby on Rails
CFML
Python
Tools and Utilities
Remotely Hosted
Web Hosting
Advertising Forums
General Advertisements
Job Offers & Assistance
Traffic Exchange
Website Reviews
Web Hosting Talk
DBForums.com
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
creating a php registration page
codeguru21
Script Requests
3
11-07-03
02:02 PM
need to make a confirmation page
codeguru21
PHP
1
10-02-03
05:18 PM
passing array to hidden fields in form on next page?
seala
ASP
2
09-04-03
03:40 PM
page navigation help
grafik
ASP
1
07-27-03
03:08 PM
preload an asp page
Gurrutello
ASP
1
06-24-03
09:12 PM
All times are GMT -5. The time now is
06:41 AM
.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Share on Facebook
Share on Stumble Upon
Share on Twitter