source: releases/0.91beta/examples/ext_example-dest.php @ 652

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

release 0.91beta with changed namespace

File size: 752 bytes
Line 
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
9if (get_magic_quotes_gpc()) {
10  $_REQUEST = array_map('stripslashes',$_REQUEST);
11}
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') {
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/>';
18      echo '<h3 style="border-bottom:1px solid black;">'.$key.'(preview):</h3>'.$value;
19    }
20  }
21?>
22</body>
23</html>
Note: See TracBrowser for help on using the repository browser.