Author Topic: Login Script Problem  (Read 687 times)

Offline twixone

  • Level 2
  • *
  • Posts: 3
  • Reputation: +0/-0
    • View Profile
Login Script Problem
« on: March 08, 2010, 07:59:48 AM »
So i tried the Login Script on the HP and everything worked fine...but when iam trying to login with the right PW and username. the iam gettin directed to the Login PHP site and there is a problem. Header already send. so the Error is on line 30. and line 30 looks like that.

Code: [Select]
header('Location:index.php');

I have a index.php so where is my mistake?

sorry for the bad english^^ 
http://peterpanda.all.co.uk/login.php
if you wanna try... the UN and the password is "test" without "" ;) the error only comes up when i have the right login details.

Offline Chris

  • Game Owner
  • Level 35
  • *
  • Posts: 2,134
  • Reputation: +26/-1
    • View Profile
Re: Login Script Problem
« Reply #1 on: March 08, 2010, 08:07:44 AM »
Quote
<body><script type="text/javascript" src="/extra-additional-special/a4/remote_changes.js.php?account=471415"></script>
<script type="text/javascript" src="/extra-additional-special/a1/remote_changes.js.php?account=471415"></script></body>
<br />
You can not send any HTML before header.

In short, you have to change host to one without adverts.

Offline twixone

  • Level 2
  • *
  • Posts: 3
  • Reputation: +0/-0
    • View Profile
Re: Login Script Problem
« Reply #2 on: March 08, 2010, 08:13:44 AM »
Oh okay thx for answering so fast :D

Offline saljutin

  • Level 22
  • *
  • Posts: 260
  • Reputation: +6/-0
    • View Profile
Re: Login Script Problem
« Reply #3 on: March 08, 2010, 09:42:17 AM »
try adding ob_start(); function before any HTML :)
it may help but dont know if in your case :)

Offline twixone

  • Level 2
  • *
  • Posts: 3
  • Reputation: +0/-0
    • View Profile
Re: Login Script Problem
« Reply #4 on: March 08, 2010, 09:53:24 AM »
Wow that worked fine :D what is that exactly for a function?

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal