Ignore:
Timestamp:
09/28/05 13:06:16 (14 years ago)
Author:
gocher
Message:

javascript error handler for ext_example, and two little mistakes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/ext_example-dest.php

    r337 r353  
    88<?php 
    99if (get_magic_quotes_gpc()) { 
    10    $_REQUEST = array_map('stripslashes',$_REQUEST); 
     10  $_REQUEST = array_map('stripslashes',$_REQUEST); 
    1111} 
    12         foreach($_REQUEST as $key=>$value){ 
    13           if(substr($key,0,10) == 'myTextarea') { 
     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') { 
    1417      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; 
     18      echo '<h3 style="border-bottom:1px solid black;">'.$key.'(preview):</h3>'.$value; 
    1619    } 
    1720  } 
Note: See TracChangeset for help on using the changeset viewer.