Forums

This topic is locked

After Insert Go to.

Posted 15 Jul 2004 00:35:39
1
has voted
15 Jul 2004 00:35:39 Chase Rage posted:
i set up a form to insert data into a mysql table, and i selected a page for the browser to go to after the submit button has been clicked. but if you hit the insert button, it gives off some error aobut not being able to submit header twice. now below is the insert area of the mysql setup.and i assume that my problem lies somewhere within there. any help?

<pre id=code><font face=courier size=2 id=code>$insertGoTo = "login_success.php?mai=members";
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $HTTP_SERVER_VARS['QUERY_STRING'];
}
header(sprintf("Location: %s", $insertGoTo));
} </font id=code></pre id=code>

Reply to this topic