Hi this is my first post and i have a question about php.
I want to print a variable from textarea and print it in php but when i do all te returns are turned in to spaces. I have used wrap"hard" to include all returns but it doesn't show in php. Or do i have to split the text array with "substr()? Please advise
this is my code.
[PHP]
<html>
<head>
<title>Untitl ed Document</title>
</head>
<body>
<?php if ($sendbutton != "send" || !$text) {
?>
<form action="form.ph p" method="post">
<textarea name="text" cols="50" rows="5" wrap="hard"></textarea><br>
<input name="sendbutto n" type="submit" value="send">
</form>
<?php } else {
print "text<br>";
print $text ;
} ?>
</body>
</html>
[/PHP]
I want to print a variable from textarea and print it in php but when i do all te returns are turned in to spaces. I have used wrap"hard" to include all returns but it doesn't show in php. Or do i have to split the text array with "substr()? Please advise
this is my code.
[PHP]
<html>
<head>
<title>Untitl ed Document</title>
</head>
<body>
<?php if ($sendbutton != "send" || !$text) {
?>
<form action="form.ph p" method="post">
<textarea name="text" cols="50" rows="5" wrap="hard"></textarea><br>
<input name="sendbutto n" type="submit" value="send">
</form>
<?php } else {
print "text<br>";
print $text ;
} ?>
</body>
</html>
[/PHP]
Comment