Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-07-2005, 04:05 AM
WebProWorld New Member
 

Join Date: Mar 2004
Posts: 19
anthonyl RepRank 0
Default Alternative to include statement

Hi there.
Can someone please tell me how do I redirect a user to a html page when a particular condition is set?
When I use the inclue "page.html"; statement, it displays the page but it does not load the style sheets, the graphics etc.
Is there another statement that I can use ?

Thanks
__________________
Consultant
[b]Become a ClubMom Partner ClubMom Affiliates
Reply With Quote
  #2 (permalink)  
Old 02-07-2005, 08:55 PM
WebProWorld Pro
 

Join Date: May 2004
Location: Austin, TX
Posts: 199
steve0 RepRank 0
Default

Given the limited information..

1. I would look at the error log and see WHY the images and style sheets are missing.. check your paths..

2.
<?
if (condition){
header("location:page.html");
}
?>

This must occur before any information is sent to the browser.. otherwise you'll get an error..
i.e. top of the page, before the <HTML> tag.
__________________
Hardcore Programming Solutions and Coffee Drinker
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , ,



Thread Tools
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

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


Search Engine Optimization by vBSEO 3.2.0