Added a javascript function to handle tabs in textarea.
Added redirections after data sent and treated in POST to avoid multiple insertions