hey guys,
i'm looking to redirect to another page after i've completed a database operation, i'm trying to do it using
header ('Location: myurl.php');
exit();
and i'm getting the "Cannot modify header information - headers already sent by..." error, i understand from reading around the web that you're not supposed to have any output before this line in the code, so i was wondering how this can work? i mean, i've taken data and updated the database, not outputted anything to the browser and this error is still being given. i'm just a bit lost, i'm used to the response.redirect of asp, which works a treat and i'm not sure if i'm just missing something because redirects seem to be far too complicated in php!
please tell me i'm just being an idiot and i've missed something because i'm on the verge of heading straight back to asp! ha ha
thanks in advance