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

Last change on this file since 337 was 337, checked in by gocher, 14 years ago

Ticket #517
BackgroundColor? mistake

ext_example-dest.php
php's magic quotes fix

File size: 653 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        foreach($_REQUEST as $key=>$value){
13          if(substr($key,0,10) == 'myTextarea') {
14      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/>';
15                        echo '<h3 style="border-bottom:1px solid black;">'.$key.'(preview):</h3>'.$value;
16    }
17  }
18?>
19</body>
20</html>
Note: See TracBrowser for help on using the repository browser.