note 49359 deleted from security.globals by aidan

From: Date: Tue, 12 Apr 2005 01:48:31 +0000
Subject: note 49359 deleted from security.globals by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-87871@lists.php.net to get a copy of this message
Note Submitter: wizzkidy at hotmail dot com ---- try this one when you design your PHP with register_globals OFF and put your PHP on a server with register_globals ON: <?php $bericht['onderwerp'] = addslashes(htmlspecialchars($_POST['onderwerp'])); $bericht['bericht'] = addslashes(htmlspecialchars($_POST['bericht'])); print_r($bericht); ?> This wil NOT result in a print_r ==> array() with 2 elements. This wil result in a print($_POST['bericht']); Rather nasty when you then use the function foreach() to loop trough a non-existent array()

« previous php.notes (#87871) next »