Mac
New Member
- Feb 9, 2011
- 111
- 2
PHP:
<?php
$code = $_POST['code'];
$submited = $_POST['go'];
if($submited):
if($code):
print "<fieldset>".$code."</fieldset><br /><br /><br />";
else:
echo "<p>Empty code!</p>";
endif;
endif;
echo <<< END
<form method='post'>
<b>Test your html code.</b><br />
<textarea name='code' rows='5' cols='50'>{$code}</textarea><br />
<input type='submit' name='go'>
</form>
END;
?>
Credits to me !