How do you call an input tag in a here document when that here document is in a variable in php?
Here is my code:
<?php
$myForm = <<<FORMSTUFF
<h3>Generate ASCII Table</h3>
<form action="$_SERVER[PHP_SELF]" method="post">
<label for="numRows">Number of rows:</label>
<input type="text" name="numRows" id="numRows" value="32">
<br><br>
<input type="submit" name="go" value="Create ASCII Table">
</form>
FORMSTUFF;
$numRows = $_POST['numRows'];
?>
I've tried using 'get' instead of 'post' but that didn't work. I also tried replacing the '$_POST' to '$myForm', that didn't work either.your text