Echo Php Style
Echo Multiple Lines At Once.
echo <<<END
all sorts of text and statements...
END;
but if the following produces a parse error at line 14 which is the closing
php tag.
<?php
echo <<<TT
<tr>
<td>
<p>1. some text...</p>
</td>
<td>
<p>
<input type="radio" name="gs.$i" value="1">
</p>
</td>
</tr>
TT;
?>
Echo Data On Seperate Lines
I have been trying to display the result from the textarea on seperate lines for e.g
if i enter
a
b
c
in the text area it should display the same rather than what it is doing write now "a b c" Can someone please help me with this?
<?php
$action = $_REQUEST['action'];
if ($action == submit) {
print str_replace("
", "", $_POST['testt']);
}
echo "<form method=post action=?action=submit>";
echo "<textarea name=testt></textarea>";
echo "<input type=submit name=test value=test></form>"
?>
Sql - Echo From Database With Break Lines?
}
echo "<form method=post action=?action=submit>";
echo "<textarea name=testt></textarea>";
echo "<input type=submit name=test value=test></form>"
?>