URL Jump or Foward

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dgny06
Forum Commoner
Posts: 25
Joined: Thu Jun 14, 2007 11:35 pm

URL Jump or Foward

Post by dgny06 »

I apologize for such a remedial question but even after googling, I can not get this to work. I have a PHP page that is called by a form. After the script is executed on the page I want the page to jump to a new one. I thought using the code below at the end of my page would work, but I get a "Warning: Cannot modify header information - headers already sent by" error. Can someone please let me know what else I need to add in order for this to work. Or is there maybe another method to accomplish this.

Thanks in advance....



<?php
header("Location: url");
?>
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Have you searched? This topic came up a few hours ago and regularly comes up.. far too often.
Post Reply