svn commit: r639 - trunk/mapbender/http/tools/char_code.php

uli at osgeo.org uli at osgeo.org
Tue Jul 4 06:13:22 EDT 2006


Author: uli
Date: 2006-07-04 10:13:22+0000
New Revision: 639

Added:
   trunk/mapbender/http/tools/char_code.php   (contents, props changed)

Log:


Added: trunk/mapbender/http/tools/char_code.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/tools/char_code.php?view=auto&rev=639
==============================================================================
--- (empty file)
+++ trunk/mapbender/http/tools/char_code.php	2006-07-04 10:13:22+0000
@@ -0,0 +1,26 @@
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>Url-Encode and -Decode</title>
+</head>
+<body>
+<form method='POST'>
+  <textarea name="c" rows="10" cols="100"><?php  if($_REQUEST["c"]){echo $_REQUEST["c"];}?></textarea>
+  <br>
+  <input type='submit' name='encode' value='encode'>
+  <br>
+  <input type='submit' name='decode' value='decode'>  
+</form>
+<hr>
+<textarea rows="10" cols="100">
+<?php
+if($_REQUEST["encode"]){
+echo utf8_encode($_REQUEST["c"]);
+}
+if($_REQUEST["decode"]){
+echo utf8_decode($_REQUEST["c"]);	
+}
+?>
+</textarea>
+</body>
+</html>
\ No newline at end of file




More information about the Mapbender_commits mailing list