document.location = 'my_new_url';
I do redirects a lot, for example in scripts that preform a delete action of a record in the database. I usually have a link that points to a page of almost purely PHP, which after it does the mysql delete query it simply redirects page to the previous page. I do this a lot.
Firstly, is this bad technique? Do you guys find yourself doing a decent amount of page redirects?
Secondly, is there a solution in php that is easy to do redirects?