0
rated 0 times
[
6]
[
6]
/ answers: 1 / hits: 16321
/ 11 Years ago, wed, october 16, 2013, 12:00:00
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.
More From » php