Jump to content


Photo

Header not working.. Help


  • Please log in to reply
3 replies to this topic

#1 LiTe

LiTe
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 12 October 2006 - 05:41 AM

I made an affiliates page (one page) with PHP that current has view affiliates, admin (ADD / REMOVE) and right now I'm trying to add clicks/hits.

I have it adding the clicks to SQL database but I can't get it to forward/redirect to the website.

WEBSITE is stored in $GoTo and does work.

  $GoTo = $row['url'];
  echo "$GoTo";

Tried:

  header('Location: $GoTo');
  header("Location: $GoTo");
  header('Location: http://asf.com');

They don't work, please help!

#2 JayBachatero

JayBachatero
  • Members
  • PipPipPip
  • Advanced Member
  • 296 posts
  • LocationQueens NY

Posted 12 October 2006 - 05:50 AM

Are you getting errors or it's just not working at all?  This might help if you are getting headers already sent errors.
JayBachatero
SMF Developer && Converter Specialist

#3 LiTe

LiTe
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 12 October 2006 - 05:52 AM

I'm getting no errors at all..

#4 JayBachatero

JayBachatero
  • Members
  • PipPipPip
  • Advanced Member
  • 296 posts
  • LocationQueens NY

Posted 12 October 2006 - 05:58 AM

Can you post your script?
JayBachatero
SMF Developer && Converter Specialist




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users