Forums

PHP

This topic is locked

Insert Record

Posted 21 Aug 2005 08:47:22
1
has voted
21 Aug 2005 08:47:22 Chris Trace posted:
Hey there,

I have used the standard SW insert record behaviour many times although it does not seem to be working on a particular page - most succintly the redirect does not work after the data is posted to the data base.

I am not going to post the code here as the page contains 1000 lines of code but if there is an enthusiastic person out there who really likes to help please email me at

in short

$insertGoTo = "cmprojectsnotesindex.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $insertGoTo));
}

creates conflicts with

$colname_cuser = "1";
if (isset($_SESSION['MM_Username'])) {
$colname_cuser = (get_magic_quotes_gpc()) ? $_SESSION['MM_Username'] : addslashes($_SESSION['MM_Username']);

i think

but help would be really appreciated.

<font color=red>ultadav edit :: please don't double post the same question in other forums</font id=red>

Reply to this topic