I want to be able to edit something inside of a heredoc syntax. Something like this:
index.php:
$var = <<<HTML
<form action="index.php" method="get" id="forma">
<input type="radio" name="choice" value="value">Message<br>
</form>
HTML;
...
$form = $var;
js:
<script>
document.getElementById('forma').open();
document.getElementById('forma').write('<input type="submit">');
document.getElementById('forma').close();
</script>
EDIT: My goal is to have a button to go to a new page, but the button won't be present until you click OK on a JS confirm()
popup.