nemonoman wrote:The first "header" command executes, sending the browser to the new page. The (mysql_query( is therefore never executed --
Not true; scripts continue to run even after calls to the header function. Headers aren't sent until either output is started or (if there isn't any output) the script ends; which is why header('Location:') calls usually have exit; after them.
But it is a bit silly to have a redirect header and then send a second redirect header if a query succeeds. That first one probably isn't supposed to be there, since it causes a redirect whether the query succeeded or not.
This business of using $POST['editlname'] and $GET['editlname'] (there are others like that): that's a good way of getting messed up. The Location headers you're using suggest to me that you're sending a lot of stuff out to the client in hopes that it'll be sent back again (and that it will be uncorrupted). Have you considered using a [man]session[/man] to pass information from page to page instead?