|
Dear All
I wish to redirect and open a specific url after update
I am updating a record and wisht to re-direct if updation is successful
if (isset($Submit) )
{
$active_yn="N";
if ($active)
{
$active_yn="Y";
}
$ymd_asondate = dmy2ymd($asondate);
$sqlupdt = "update fcr set irate = $imprate, erate = $exprate, dt = '$ymd_asondate' where fcr_id = $fcrid1 ";
$result=mysql_db_query($DB_NAME,$sqlupdt, $connection);
if ($result)
{
header ("/forum/Location_curratelist.html");
}
else
{
echo "<br>Error while executing update query<br>".$sqlupdt;
}
}
I confirmed that the updation taked place properly
curratelist.php program exists in currentdirectory.
However the required program doesnot get executed / redirected in browser
Please help
I am getting following error
Warning: Cannot modify header information - headers already sent by (output started at /home/mangeindia/www/curratemod.php:59) in /home/mangeindia/www/curratemod.php on line 228
Thanks in advance
|
|
|
The problem is that your code has already written something to the browser by the time you try to redirect. You either have some inline code that has written HTML to the browser or you have an include that is doing it. Perhaps you have a common header that is already written by the time you try to redirect?
|
|
|
|
|
|
|
|
|
© Copyright codetoad.com 2001-2004 |
|
|