You need to use Rich Text editors like htmlarea, tinymce etc. which inherently do that formatting stuff for you and it gets displayed in exactly...
You need to use SetCookie function of Javascript and make sure that you dont set the expires attribute so that it will be deleted once after he...
Separate names with a comma.