codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  after updation of a table open another program .. need help  vikaspa at 14:31 on Monday, August 23, 2004
 

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

  Re: after updation of a table open another program .. need help  Troy Wolf at 19:01 on Monday, August 23, 2004
 

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?
Troy Wolf: site expert
Shiny Solutions




© Copyright codetoad.com 2001-2004