~pablocapeluto/cds-php/devel-3.1

« back to all changes in this revision

Viewing changes to FCKeditor/_samples/php/sampleposteddata.php

  • Committer: pcapeluto at gmail
  • Date: 2010-08-20 17:51:08 UTC
  • Revision ID: pcapeluto@gmail.com-20100820175108-jyi8dbyj15uy9p4i
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php 
 
2
/*
 
3
 * FCKeditor - The text editor for internet
 
4
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
 
5
 * 
 
6
 * Licensed under the terms of the GNU Lesser General Public License:
 
7
 *              http://www.opensource.org/licenses/lgpl-license.php
 
8
 * 
 
9
 * For further information visit:
 
10
 *              http://www.fckeditor.net/
 
11
 * 
 
12
 * "Support Open Source software. What about a donation today?"
 
13
 * 
 
14
 * File Name: sampleposteddata.php
 
15
 *      This page lists the data posted by a form.
 
16
 * 
 
17
 * File Authors:
 
18
 *              Frederico Caldeira Knabben (fredck@fckeditor.net)
 
19
 *              Jim Michaels (jmichae3@yahoo.com)
 
20
 */
 
21
?>
 
22
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 
23
<html>
 
24
<?php
 
25
 
 
26
if ( isset( $_POST ) )
 
27
   $postArray = &$_POST ;                       // 4.1.0 or later, use $_POST
 
28
else
 
29
   $postArray = &$HTTP_POST_VARS ;      // prior to 4.1.0, use HTTP_POST_VARS
 
30
 
 
31
foreach ( $postArray as $sForm => $value )
 
32
{
 
33
        $postedValue = htmlspecialchars( stripslashes( $value ) ) ;
 
34
 
 
35
echo "$postedValue";
 
36
 
 
37
}
 
38
?>
 
39
</html>