Jump to content

Archived

This topic is now archived and is closed to further replies.

LiTe

Header not working.. Help

Recommended Posts

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!

Share this post


Link to post
Share on other sites
Are you getting errors or it's just not working at all?  [url=http://www.phpfreaks.com/forums/index.php/topic,37442.0.html]This[/url] might help if you are getting headers already sent errors.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.