Redirection Problem

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
kkawalli
Forum Newbie
Posts: 2
Joined: Thu Jan 27, 2005 7:09 am

Redirection Problem

Post by kkawalli »

Hi ,

I have a problem in redirecting the page
I have to redirect the page once the details are submited to the database the problem is that i am connecting to mysql database through adodb.the files supporting are included in the top of page using "include" so when i try to redirect using header gives error


include_once($GLOBALS['DOCUMENT_ROOT']."/villasoft/".'adodb/adodb.inc.php'); //Check for path before uploading
include_once($GLOBALS['DOCUMENT_ROOT']."/villasoft/".'conf/config.php');

if(isset($_POST['add']))
{
Insert the data
header();
}


so is their any way to redirect the page......
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

What errors?
Post Reply