title: document.write to php variable
body: <p>I have this javascript</p>
  
  <pre><code>document.write(img)
  </code></pre>
  
  <p>The value of the "img" is something like:</p>
  
  <pre><code>"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMYAAADGCAYAAACJm/9dAAAgAEl ect.."
  </code></pre>
  
  <p>Now I want that "img" to be like a PHP variable. Is that possible?</p>