note 91676 added to function.header
| From: | marsha at osu1 dot php dot net | Date: | Mon, 22 Jun 2009 17:29:06 +0000 |
| Subject: | note 91676 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-157245@lists.php.net to get a copy of this message | ||
my codes i keep trying they said there's an error at the last line which is the header. They
keep telling me this warning "Warning: Cannot modify header information". How to solve
this problem? anyone can help me?
if( is_numeric($execution) ) {
echo "Modifying Indicator<br>";
$Graph = $_POST["choice"];
$aPeriod = $_POST["valueA"];
$bPeriod = $_POST["valueB"];
$cPeriod = $_POST["valueC"];
$display = $_POST["displayname"];
echo "$Graph ... $aPeriod ... $bPeriod ... $cPeriod ... $display <br>"; //
Debugging purpose
if( !validation($display,'Text') ) { $display = ""; }
if( $Graph == "Please Select a Basic Indicatior" ) { $Graph = ""; }
$aPeriod = replace($aPeriod, 0);
if( $Graph == "MACD" ) {
$bPeriod = replace($bPeriod, 1);
$cPeriod = replace($cPeriod, 1);
}
else {
$bPeriod = 0;
$cPeriod = 0;
}
echo "Debugging : Graph used = $Graph ... Value A = $aPeriod ... Value B = $bPeriod ... Value
C = $cPeriod ... Display = $display <br>"; // for debugging
$display = strtoupper($display);
$query = "UPDATE Indicators SET ";
if( strlen($Graph) > 0 ) { $query = $query . " Function='$Graph',"; }
$query = $query . "ValueA='$aPeriod', ValueB='$bPeriod',
ValueC='$cPeriod'";
if( strlen($display) > 0 ) { $query = $query . ", Indicator='$display'"; }
$query = $query . " WHERE Username='$LoginID' AND
IndicatorID='$execution'";
echo "Update query = $query<br>";
accessDB($query,'');
header("Location:main.php"); --> this line that has an error.
----
Server IP: 203.211.135.122
Probable Submitter: 124.197.71.204
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit -- https://master.php.net/note/edit/91676
Del: integrated -- https://master.php.net/note/delete/91676/integrated
Del: useless -- https://master.php.net/note/delete/91676/useless
Del: bad code -- https://master.php.net/note/delete/91676/bad+code
Del: spam -- https://master.php.net/note/delete/91676/spam
Del: non-english -- https://master.php.net/note/delete/91676/non-english
Del: in docs -- https://master.php.net/note/delete/91676/in+docs
Del: other reasons-- https://master.php.net/note/delete/91676
Reject -- https://master.php.net/note/reject/91676
Search -- https://master.php.net/manage/user-notes.php