Php and strings inside code -


i have 1 code , when execute code let other thing , example :

<?php  if ($ending=="ok") {     $insert_end="ok"; }    if ($insert_end=="ok") {     print "ok"; }  ?> 

but if go url , put example :

http://www.domain.com/index.php?insert_end=ok

execute code , don´t want possible because if people know can execute code , it´s possible no let execute code when put in url

thank´s regards

disable register_globals in php.ini file. should not used reason.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -