title: Copy one to another textbox and change letters
body: <p>Im using this script to copy from one to another textbox. I dont know how to make when i write in box A that what will be copied in box B to be changed. exp. Letter A ti be 001, letter E to be 002, letter V to be 008. I dont care if its in php or JavaScript.</p>
  
  <p>Thanks for your time and help</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript"&gt;
      function copy_data(val){
       var a = document.getElementById(val.id).value
       document.getElementById("copy_to").value=a
      }
  
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  From:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;input type="text" name ="a" id="copy_from" onkeyup="copy_data(this)"/&gt;&lt;br&gt;
  To:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;input type="text" name ="b" id="copy_to"/&gt;&lt;br&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>