Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

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 ASP Free Forums Sponsor:
  #1  
Old February 28th, 2006, 09:56 AM
Sluap's Avatar
Sluap Sluap is offline
Mooing Wizard
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jul 2005
Location: Somewhere in England
Posts: 1,205 Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 4 h 3 m 19 sec
Reputation Power: 55
PHP -- Redirect

Ok simple one i think, is there a php equiv of:

Code:
Response.Redirect("admin_passwordFail.asp")


can't find it atm i know if i look hard enough ill find it but i know u guys love helping

Cheers
__________________
Practice safe design all ways use a concept.

If I have been helpful please click the scales.

Reply With Quote
  #2  
Old February 28th, 2006, 10:31 AM
ChiefWigs1982's Avatar
ChiefWigs1982 ChiefWigs1982 is offline
Cunning Linguist
ASP Free Loyal (3000 - 3499 posts)
 
Join Date: Mar 2005
Location: I used to live at home, now I stay at the house
Posts: 3,396 ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner Folder
Time spent in forums: 1 Month 1 Week 3 Days 11 h 28 m 23 sec
Reputation Power: 307
Facebook
PHP Code:
 header ('Location: admin_passwordFail.php'); 
--Jon.
__________________
Support requests via PM will be ignored!
Route of Queue | The General FAQ Thread | HOW TO POST A QUESTION

Sign up with Matched.co.uk and earn up to £15 per website every month!


Reply With Quote
  #3  
Old February 28th, 2006, 10:57 AM
Sluap's Avatar
Sluap Sluap is offline
Mooing Wizard
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jul 2005
Location: Somewhere in England
Posts: 1,205 Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 4 h 3 m 19 sec
Reputation Power: 55
cheers mate, thats falgging up an error

Warning: Cannot modify header information

Reply With Quote
  #4  
Old February 28th, 2006, 10:57 AM
Sluap's Avatar
Sluap Sluap is offline
Mooing Wizard
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jul 2005
Location: Somewhere in England
Posts: 1,205 Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 4 h 3 m 19 sec
Reputation Power: 55
PHP Code:
if ($result) { // If it ran OK.
        
            
header ('Location: enewsthx.php');
            
        } else { 
// If it did not run OK.
            
echo '<h1 id="mainhead">System Error</h1> 

Reply With Quote
  #5  
Old February 28th, 2006, 11:00 AM
RadioactiveFrog's Avatar
RadioactiveFrog RadioactiveFrog is offline
Senior Glowing Wizard
ASP Free God 7th Plane (8000 - 8499 posts)
 
Join Date: May 2005
Location: Sussex
Posts: 8,223 RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Weeks 4 Days 3 h 46 m 30 sec
Reputation Power: 326
Send a message via MSN to RadioactiveFrog
Facebook
Quote:
Originally Posted by Sluap
PHP Code:
if ($result) { // If it ran OK.
        
            
header ('Location: enewsthx.php');
            
        } else { 
// If it did not run OK.
            
echo '<h1 id="mainhead">System Error</h1> 
sorry way away.

the reason you are getting the error is because there is text being echoed before the header. The header re-direct HAS to be before anything is printed to the screen!!

Hope that helps, if not post the whole page and we can point out where you are going wrong !

RF

Reply With Quote
  #6  
Old February 28th, 2006, 11:10 AM
Sluap's Avatar
Sluap Sluap is offline
Mooing Wizard
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jul 2005
Location: Somewhere in England
Posts: 1,205 Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level)Sluap User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 4 h 3 m 19 sec
Reputation Power: 55
is there a way of having a redirect in there? of some sort

Reply With Quote
  #7  
Old February 28th, 2006, 11:15 AM
RadioactiveFrog's Avatar
RadioactiveFrog RadioactiveFrog is offline
Senior Glowing Wizard
ASP Free God 7th Plane (8000 - 8499 posts)
 
Join Date: May 2005
Location: Sussex
Posts: 8,223 RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Weeks 4 Days 3 h 46 m 30 sec
Reputation Power: 326
Send a message via MSN to RadioactiveFrog
Facebook
Quote:
Originally Posted by Sluap
is there a way of having a redirect in there? of some sort
the code you have showed me is fine. Can you show me the whole page so i can see where the prob is. I am on msn if you wanna talk on there

Reply With Quote
  #8  
Old February 28th, 2006, 02:21 PM
banker's Avatar
banker banker is offline
Charging Rhino Wizard
ASP Free Regular (2000 - 2499 posts)
 
Join Date: Dec 2004
Location: 127.0.0.1
Posts: 2,053 banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 23 h 28 m 28 sec
Reputation Power: 36
RAF is right, you can't have any output to the screen before the redirect or you will be an error an the redirect will fail. This includes a space. Make sure your php delimiter (<?php) is the very first thing on the page.
__________________
ShepherdWeb :: Charging Rhino Wizard

I know of no more encouraging fact than the unquestionable ability of man to elevate his life by conscious endeavor.
{Henry David Thoreau}

§ shepherdweb.com
§ fariswheel productions
§ reagan administration

Reply With Quote
  #9  
Old March 4th, 2006, 04:12 PM
oneMSBi's Avatar
oneMSBi oneMSBi is offline
Caution:Loderator Moose !
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: India
Posts: 235 oneMSBi User rank is Corporal (100 - 500 Reputation Level)oneMSBi User rank is Corporal (100 - 500 Reputation Level)oneMSBi User rank is Corporal (100 - 500 Reputation Level)oneMSBi User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 22 h 49 m 43 sec
Reputation Power: 6
watch out for the "headers already sent" error message down the line
__________________
The member formerly known as David Beckham
Manchester United Forever

Never argue with fools. They will bring you down to their level and beat you with experience.

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > PHP -- 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 6 hosted by Hostway
Stay green...Green IT