I have a form, and i want to redirect after update. I using this code, but it doesn't work:
<input type=button onClick="calendar.update(<?php echo $info['id']; ?>); location.href='index.php';" value='Save'>
How can i add multiple events (include redirect script) for this?