title: Javascript base64 encode data in textarea and replace
body: <p>In a website i have data that a user would enter (in a textarea), and I want javascript to encode it in base64 when a button is pressed. I would then submit the form and PHP would decode it.</p>
  
  <p>Has anyone got a function that would convert data in a textarea to base64 and replace the original data with the ciphered when a button is pressed?</p>