Have moved your topic to a new topic. Please don't resurrect 10 month only topics. Simply create a new one and point a link to it if needed.
For what you're wanting to work you're going to need to use AJAX to submit the form so its submit and response does not cause a page load. In the same jQuery that you prepare it you'd tell it how to handle the response. The below is included with CB.
malsup.com/jquery/form/
So you'd set your Code action method to use jQuery, you'd set the jQuery plugin to "form", and supply jQuery to use this plugin (see link above for documentation and examples). Your HTML can probably just be a delimiter field.
Note you can not have forms within forms so this will not work in profile edit.