source: trunk/examples/ext_example-dest.php @ 677

Last change on this file since 677 was 677, checked in by ray, 13 years ago

set svn:keywords property for the new files & all plugins

  • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
File size: 752 bytes
RevLine 
[330]1<html>
2<head>
3  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4  <title>Example of Xinha</title>
5  <link rel="stylesheet" href="full_example.css" />
6</head>
7</body>
8<?php
[337]9if (get_magic_quotes_gpc()) {
[353]10  $_REQUEST = array_map('stripslashes',$_REQUEST);
[337]11}
[353]12// or in php.ini
13//; Magic quotes for incoming GET/POST/Cookie data.
14//magic_quotes_gpc = Off
15  foreach($_REQUEST as $key=>$value){
16    if(substr($key,0,10) == 'myTextarea') {
[330]17      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/>';
[353]18      echo '<h3 style="border-bottom:1px solid black;">'.$key.'(preview):</h3>'.$value;
[330]19    }
20  }
21?>
22</body>
[353]23</html>
Note: See TracBrowser for help on using the repository browser.