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









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: web service
•  Re: How does remote server update client`s UI?
•  Re: text field multiple
•  Re: Java script: Disable
•  Designmode and ActiveX
•  Asking about Medical Application
•  Re: sending eMail using SMTP
•  ORA - 01306 illegal unliable name/number
•  Dropdownlist Database Connection


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2004