Warning?

From: Date: Mon, 30 Dec 2002 17:25:10 +0000
Subject: Warning?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-129682@lists.php.net to get a copy of this message
Hi everyone, I'm using Dreamweaver to create an insert page and after the record is inserted I receive this error: Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site8/fst/var/www/html/admin_gs/products_insert.php:2) in /home/virtual/site8/fst/var/www/html/admin_gs/products_insert.php on line 62 Line 58 - 62 is as follows: if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) { $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?"; $insertGoTo .= $HTTP_SERVER_VARS['QUERY_STRING']; } header(sprintf("Location: %s", $insertGoTo)); This same code works in my update page without an error. If you can help, thank you!!!! Doug

« previous php.general (#129682) next »