/ Published in: PHP
                    
                                        
Magic quotes for incoming GET/POST/Cookie data.
This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.
                This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<?php
echo $_POST['lastname']; // O\'reilly
} else {
$lastname = $_POST['lastname'];
}
echo $lastname; // O\'reilly
$sql = "INSERT INTO lastnames (lastname) VALUES ('$lastname')";
?>
URL: http://cn.php.net/get_magic_quotes_gpc
Comments
 Subscribe to comments
                    Subscribe to comments
                
                