Quote:
Originally Posted by Skippy
When I take away the form bit it works however when I put the form part in it just returns </form> within the text area. How can I stop this?
Thanks.
|
Your Code change to:
<form name="myform" action="" method="POST">
<textarea rows="20" cols="50">
PHP Code:
<?php
//$charse='UTF-8';
//$str=stripcslashes($str);
$str=file_get_contents('yourpage.html/.php/.chm/.txt');
echo htmlentities($str);
//echo htmlentities($str, ENT_COMPAT, $charset);
?>
</textarea>
<input type="submit" value="Submit">
</form>
Regards