I am using line below in my php blog site, how is that danger ? I have register_global off and magic_quotes_gpc() also off and using php 5.2. Can anyone please enlight me, or give alternative to this ? I did try $_SERVER['php_self'] but that didn't work.
<form action="<?php echo $SCRIPT_NAME. "?id=" . $validentry; ?>" method="post">