grandadevans Posted August 13, 2006 Share Posted August 13, 2006 Hi all,Can anybody help me,I have a script, here are the relevant lines[code] mysql_query($insert) or die(mysql_error()); $loc='test.php; header("Location: $loc"); echo "test";[/code]The problem is that it looks like it is just skipping the header line.After the form has been completed, it completes the MySQL query, just refreshes the same page and echoes the "test" line.There is no error message or anything, it just skips the line, I have tried it this way and with a direct reference to a page ie [code]header("Location: test.php") [/code]but that doesn't work either!Anybody got any ideas? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.