I’m sending form data to an iframe (<form target="myIframe" ... >) because I need to upload a file and because I don’t want to reload the page.
The problem is that I need to encrypt some data of the form. Surely I can replace values in form with encrypted values but it would not be really user-friendly. Is there some kind of callback to adjust the data of submitted form in javascript/jQuery?
Thanks!
Just use SSL.
You need to load the page that displays the form via SSL to, otherwise it can be interfered with by a man-in-the-middle attack.