title: Do I need to sanitize the Javascript in the following situation?
body: <p>My question is about sanitization.
  <strike>Do I need to sanitize the javascript in the following situation?</strike></p>
  
  <p>I'm sending a javascript array as Json to php via ajax. The array will be manipulated in php then some of the data will be posted to mysql. 
  Please note that <strong>at no time does the user write values themselves</strong>. The array is created based on the buttons the user clicks.</p>
  
  <p><strong>On further reading</strong></p>
  
  <p>Based on <a href="https://stackoverflow.com/questions/6280917/sanitize-radio-buttons-checkboxes-and-option">Sanitize (radio buttons, checkboxes and &lt;option&gt;)</a> I'm assuming that I need to sanitize the javascript. If this is correct, <strong>what sanitization would you recommend I do?</strong> </p>
  
  <p>The array I'm using is a multidimensional array like Array[5][3]=2. It should only contains number values.</p>