1
0
This repository has been archived on 2025-06-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
LuckyCoinkydink/htmlarea/examples/files/ext_example-dest.php

24 lines
751 B
PHP
Executable File

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Example of Xinha</title>
<link rel="stylesheet" href="full_example.css" />
</head>
<body>
<?php
if (get_magic_quotes_gpc()) {
$_REQUEST = array_map('stripslashes',$_REQUEST);
}
// or in php.ini
//; Magic quotes for incoming GET/POST/Cookie data.
//magic_quotes_gpc = Off
foreach($_REQUEST as $key=>$value){
if(substr($key,0,10) == 'myTextarea') {
echo '<h3 style="border-bottom:1px solid black;">'.$key.'(source):</h3><xmp style="border:1px solid black; width: 100%; height: 200px; overflow: auto;">'.$value.'</xmp><br/>';
echo '<h3 style="border-bottom:1px solid black;">'.$key.'(preview):</h3>'.$value;
}
}
?>
</body>
</html>